|
|
A079229
|
|
Least k>0 such that rad(n+k) > rad(n), where rad is the squarefree kernel (A007947).
|
|
2
|
|
|
1, 1, 2, 1, 1, 1, 3, 1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 3, 2, 1, 3, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 3, 2, 1, 1, 4, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 3, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 3, 1, 1, 1, 1, 3, 2, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 4, 1, 2, 1, 1, 1, 2, 1, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
|
|
LINKS
|
|
|
MATHEMATICA
|
rad[n_] := Times @@ FactorInteger[n][[All, 1]]; a[1] = 1; a[n_] := For[k = 1, True, k++, If[ rad[n+k] > rad[n], Return[k]]]; Table[ a[n], {n, 1, 105}] (* Jean-François Alcover, Oct 05 2012 *)
|
|
PROG
|
(Haskell)
a079229 n = a079229_list !! (n-1)
a079229_list = f a007947_list where
f (x:xs) = ((+ 1) . length $ takeWhile (<= x) xs) : f xs
(PARI) rad(n)=my(f=factor(n)[, 1]); prod(i=1, #f, f[i])
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|