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!)
A276567 Odd squares not of the form p + 2^k with p prime. 1
1, 40401, 62001, 96721, 121801, 192721, 326041, 410881, 555025, 660969, 683929, 772641, 786769, 822649, 1343281, 1390041, 1530169, 1739761, 1885129, 1923769, 1962801, 2283121, 2544025, 2913849, 3207681, 3214849, 3352561, 3396649, 3613801, 3775249, 3853369, 4060225 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The sequence contains also Sierpiński numbers (i.e., 4521731193704761, 60428287050225649).
LINKS
FORMULA
A006285 INTERSECT A016754.
MAPLE
filter:= proc(n) local k;
for k from 0 to ilog2(n) do
if isprime(n - 2^k) then return false fi
od:
true
end proc:
select(filter, [seq((2*i+1)^2, i=0..10^4)]); # Robert Israel, Sep 07 2016
MATHEMATICA
filterQ[n_] := Module[{k}, For[k = 0, k <= Log[2, n], k++, If[PrimeQ[n - 2^k], Return[False]]]; True];
Select[Table[(2i+1)^2, {i, 0, 10^4}], filterQ] (* Jean-François Alcover, Oct 06 2020, after Maple *)
PROG
(Magma) lst:=[]; for s in [1..2015 by 2] do n:=s^2; x:=0; repeat x+:=1; a:=n-2^x; until a lt 1 or IsPrime(a); if a lt 1 then Append(~lst, n); end if; end for; lst;
CROSSREFS
Sequence in context: A229675 A250905 A250949 * A216291 A216290 A237970
KEYWORD
nonn
AUTHOR
STATUS
approved

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 8 06:24 EDT 2024. Contains 374148 sequences. (Running on oeis4.)