login
A071809
Smallest number s such that s*k-1 is squarefree for 1 <= k <= n.
3
2, 2, 2, 2, 4, 4, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 12, 12, 24, 120, 120, 120, 120, 120, 150, 150, 150, 150, 240, 240, 240, 240, 240, 240, 300, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840, 840
OFFSET
1,1
COMMENTS
a(n) is even for all n. - Amiram Eldar, Apr 30 2025
LINKS
FORMULA
From Amiram Eldar, Apr 30 2025: (Start)
a(n) >= a(n-1) for n >= 2.
a(n) = A383547(m), for n = A383548(m-1)+1..A383548(m), m >= 2. (End)
MATHEMATICA
a[n_] := a[n] = Module[{s = 2, m = n + 1}, While[! AllTrue[s*Range[n] - 1, SquareFreeQ], s += 2]; While[SquareFreeQ[s*m - 1], a[m] = s; m++]; s]; Array[a, 60] (* Amiram Eldar, Apr 30 2025 *)
PROG
(PARI) a(n) = my(s=1); while(sum(i=1, n, issquarefree(s*i-1))<n, s++); s;
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Jun 06 2002
STATUS
approved