OFFSET
1,1
COMMENTS
The sums of the first 10^k terms, for k = 1, 2, ..., are 20, 204, 2534, 27314, 282074, 2835574, 28408796, 284149401, 2841591067, 28416151694, ... . Apparently, the asymptotic mean of this sequence is 2.8416..., which seems to be also the asymptotic mean of A383546.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 0 if and only if n+1 is nonsquarefree (A013929).
MATHEMATICA
a[n_] := Module[{k = 0, s = 1}, While[SquareFreeQ[s], s += n; k++]; k-1]; Array[a, 100]
PROG
(PARI) a(n) = {my(k = 0, s = 1); while(issquarefree(s), s += n; k++); k-1; }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Amiram Eldar, Apr 30 2025
STATUS
approved
