OFFSET
0,2
COMMENTS
LINKS
PROG
(PARI)
A014963(n) = { ispower(n, , &n); if(isprime(n), n, 1); };
A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
(PARI)
up_to = 510511; \\ = 1+A002110(7);
LCMtransform(v) = { my(len = length(v), b = vector(len), g = vector(len)); b[1] = g[1] = 1; for(n=2, len, g[n] = lcm(g[n-1], v[n]); b[n] = g[n]/g[n-1]); (b); };
v369010 = LCMtransform(vector(up_to, n, A276086(n-1)));
A369010(n) = v369010[1+n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 14 2024
STATUS
approved