login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A073250 Nonprime squarefree numbers n such that n+1 is also squarefree and nonprime, but not n-1 and n+2. 4

%I #11 Feb 27 2023 14:54:41

%S 14,21,38,57,65,69,77,105,110,114,118,122,129,133,145,154,158,165,177,

%T 182,194,205,209,221,230,237,246,258,273,290,298,309,318,326,329,334,

%U 345,354,357,365,370,381,385,390,398,402,406,410,417,426,429,434,437

%N Nonprime squarefree numbers n such that n+1 is also squarefree and nonprime, but not n-1 and n+2.

%H Harvey P. Dale, <a href="/A073250/b073250.txt">Table of n, a(n) for n = 1..1000</a>

%t tQ[n_]:=!PrimeQ[n+1]&&SquareFreeQ[n+1]&&(PrimeQ[n-1]||!SquareFreeQ[n-1])&&(PrimeQ[n+2]||!SquareFreeQ[n+2])

%t Select[Select[Complement[Range[500],Prime[Range[PrimePi[500]]]],SquareFreeQ],tQ] (* _Harvey P. Dale_, Feb 14 2011 *)

%t SequencePosition[Table[If[SquareFreeQ[n]&&!PrimeQ[n],1,0],{n,500}],{0,1,1,0}][[;;,1]]+1 (* _Harvey P. Dale_, Feb 27 2023 *)

%Y Cf. A000469, A005117, A073248, A073251, A073249.

%K nonn

%O 1,1

%A _Reinhard Zumkeller_, Jul 22 2002

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 22 19:00 EDT 2024. Contains 374540 sequences. (Running on oeis4.)