OFFSET
0,2
COMMENTS
a(9) has 272 digits and a(10) has 1523 digits.
The lexicographically earliest infinite sequence x for which A048675(x(n)) gives the partial sums of x (shifted right once). This follows because the "least k" condition in the alternative formula also ensures that each k is squarefree, as we have A097248(n) = A019565(A048675(n)) <= n for all n, with equivalence only when n is squarefree.
Compare also to A376408.
LINKS
FORMULA
EXAMPLE
Starting with a(0) = 1, we take partial sums of previous terms, and apply A019565 to get the next term, and in the rightmost column, we "unbox" that term by applying A048675 to get A376407(n), which thus gives the partial sums of a(0)..a(n-1):
a(0) = 1 -> 0
a(1) = A019565(1) = 2, -> 1 = 1
a(2) = A019565(1+2) = 6, -> 3 = 1+2
a(3) = A019565(1+2+6) = 14, -> 9 = 1+2+6
a(4) = A019565(1+2+6+14) = 330, -> 23 = 1+2+6+14
a(5) = A019565(1+2+6+14+330) = 10166, -> 353 = 1+2+6+14+330
a(6) = A019565(1+2+6+14+330+10166) = 12075690, -> 10519 = 1+2+6+14+330+10166
etc.
PROG
CROSSREFS
Subsequence of A005117.
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 04 2024
STATUS
approved