[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Revision History for A373083 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
a(1) = 1; for n > 1, a(n) = a(n-1) + n if n is prime, else a(n) = a(n-1) + largest divisor of n < n.
(history; published version)
#45 by Michael De Vlieger at Thu Jul 11 13:16:39 EDT 2024
STATUS

reviewed

approved

#44 by Michel Marcus at Thu Jul 11 12:33:00 EDT 2024
STATUS

proposed

reviewed

#43 by Ruud H.G. van Tol at Thu Jul 11 12:20:55 EDT 2024
STATUS

editing

proposed

#42 by Ruud H.G. van Tol at Thu Jul 11 12:20:38 EDT 2024
PROG

(PARI) alist(N) = my(r, d); vector(N, n, r+=if(2<#d=divisors(n), d[#d-1], d[#d])); \\ _Ruud H.G. van Tol_, Jul 11 2024

#41 by Ruud H.G. van Tol at Thu Jul 11 12:18:43 EDT 2024
PROG

(PARI) alist(N) = my(r, d); vector(N, n, r+=if(2<#d=divisors(n), d[#d-1], d[#d]));

STATUS

approved

editing

#40 by OEIS Server at Sun Jul 07 13:16:50 EDT 2024
LINKS

James C. McMahon, <a href="/A373083/b373083_1.txt">Table of n, a(n) for n = 1..1000</a>

#39 by N. J. A. Sloane at Sun Jul 07 13:16:50 EDT 2024
STATUS

proposed

approved

Discussion
Sun Jul 07
13:16
OEIS Server: Installed first b-file as b373083.txt.
#38 by Michael De Vlieger at Sun Jun 23 14:58:33 EDT 2024
STATUS

editing

proposed

#37 by Michael De Vlieger at Sun Jun 23 14:58:25 EDT 2024
FORMULA

a(n) = a(n-1) + A117818(n) for n > 1. - Michael De Vlieger, Jun 23 2024

EXAMPLE

From Michael De Vlieger, Jun 23 2024: (Start)

Let lpf = A020639(n).

a(2) = 3 since 2 is prime, therefore a(1) + 2 = 3.

a(3) = 6 since 3 is prime, therefore a(2) + 3 = 6.

a(4) = 8 since 4 is not prime, therefore a(3) + 4/lpf(4) = 6 + 2 = 8.

a(5) = 13 since 5 is prime, therefore a(4) + 5 = 13.

a(6) = 16 since 6 is not prime, hence a(5) + 6/lpf(6) = 13 + 3 = 16, etc. (End)

CROSSREFS
KEYWORD

nonn,easy,changed

STATUS

proposed

editing

#36 by James C. McMahon at Mon Jun 17 11:40:20 EDT 2024
STATUS

editing

proposed