OFFSET
1,4
COMMENTS
Is it true that lim_{n->+oo} a(n) = +oo? It seems that the last occurrences of 0, 1, 2, 3, and 4 appear at indices 15, 77, 667, 4535, and 7520. More generally, is it true that lim_{n->+oo} v(A000793(n),p) = +oo for every prime p, where v(k,p) is the p-adic valuation of k?
LINKS
Jianing Song, Table of n, a(n) for n = 1..10000
EXAMPLE
PROG
(PARI) listn(N) = {
my(V = vector(N, n, 1));
forprime (i=2, N, \\ primes i
forstep (j=N, i, -1,
my( hi = V[j] );
my( pp = i ); \\ powers of prime i
while ( pp<=j, \\ V[] is 1-based
hi = max(if(j==pp, pp, V[j-pp]*pp), hi);
pp *= i;
);
V[j] = hi;
);
);
vector(N, n, valuation(V[n], 2));
} \\ copied from Joerg Arndt's code for A000793
CROSSREFS
KEYWORD
nonn
AUTHOR
Jianing Song, Sep 24 2022
STATUS
approved