OFFSET
0,3
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
FORMULA
a(A000217(n)) = n.
EXAMPLE
The first terms, alongside the corresponding k's, are:
n a(n) k
-- ---- ---
0 0 N/A
1 1 1
2 3 2
3 2 2
4 6 3
5 4 3
6 3 3
7 6 4
8 7 4
9 5 4
10 4 4
11 11 5
12 7 5
PROG
(PARI) { print1 (0); t = 0; k = 0; for (n = 1, #a = vector(70), if (t < n, t += k++; ); print1 (", "a[n] = k + if (t==n, 0, a[t-n])); ); }
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Rémy Sigrist, Jan 31 2023
STATUS
approved