OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A188296(n) - 2. - Amiram Eldar, Feb 09 2021
EXAMPLE
Squares dividing 5-string=844+j, j=0,..,4 are as follows:4,169,9,121,16 resp. Each term initiates an arithmetic progression with suitable large difference. Such progressions are constructible by solving suitable linear Diophantine equations. E.g., quintet = {mk+3689649, mk+3689650, mk+3689651, mk+3689652, mk+3689653} = {9(592900k+409961, 25(213444k+147586, 49(108900k+75299, 4(1334025k+922413), 121(44100k+30493)}; m=2310*2310=A002110(5)^2=A061742(5)=5336100.
MATHEMATICA
s5[x_] := Total[Table[Abs[MoebiusMu[x + j]], {j, 0, 4}]] == 0; Select[Range[50000], s5]
Flatten[Position[Partition[SquareFreeQ/@Range[60000], 5, 1], _?(Union[#] == {False}&), {1}, Heads->False]] (* Harvey P. Dale, May 24 2014 *)
SequencePosition[Table[If[SquareFreeQ[n], 0, 1], {n, 50000}], {1, 1, 1, 1, 1}][[All, 1]] (* Harvey P. Dale, Oct 16 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Nov 25 2002
STATUS
approved