[go: up one dir, main page]

login
A093125
k associated with A093124.
1
0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 7, 6, 7, 8, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 13, 13, 14, 13, 13, 14, 15, 16, 17, 17, 17, 17, 17
OFFSET
1,10
PROG
(PARI) lista(nn) = my(v=vector(nn), vk=vector(nn)); v[1]=sigma(1); for (i=2, nn, k=0; while (sum(j=i-k, i, sigma(j))<v[i-1], k++); vk[i-1] = k; v[i]=sum(j=i-k, i, sigma(j))); vk; \\ edited by Michel Marcus, Dec 28 2022
CROSSREFS
Cf. A093124.
Sequence in context: A294234 A078767 A331137 * A226390 A156081 A368991
KEYWORD
nonn
AUTHOR
Jon Perry, Mar 22 2004
EXTENSIONS
More terms from Michel Marcus, Dec 28 2022
STATUS
approved