The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A364369 a(n) is the least prime that is the concatenation of n squares, where the concatenations of the last k of these squares are prime for 2 <= k <= n. 0
11, 419, 4919, 181919, 1981919, 49936919, 991981919, 9991981919, 16999369225919, 136999369225919, 99361981818199181, 1729936999369225919, 3681225936999369225919, 132481225936999369225919, 99362500576936999369225919, 8199362500576936999369225919 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
COMMENTS
At most 2 of the n squares are not divisible by 9.
LINKS
EXAMPLE
a(5) = 181919 because it is the concatenation of five squares 1^2 = 1, 9^2 = 81, 3^2 = 9, 1^2 = 1 and 3^2 = 9, and 19, 919, 81919 and 181919 are all prime, and this is the least number that works.
MAPLE
for d from 1 to 8 do
m1:= ceil(10^((d-1)/2));
m2:= floor(sqrt(10^d - 1));
S[d]:= {seq(i^2, i=m1..m2)};
if m1::even then m1:= m1+1 fi;
So[d]:= {seq(i^2, i=m1..m2, 2)};
od:
for d from 2 to 9 do P[2, d]:= select(isprime, {seq(seq(seq(10^i*s+t, t=So[i]), s=S[d-i]), i=1..d-1)}) od:
L[2]:= 11:
mm[2]:= 2:
for m from 3 do
found:= false;
for d from mm[m-1]+1 to m+7 do
P[m, d]:= select(isprime, {seq(seq(seq(10^i*s+t, t=P[m-1, i]), s=S[d-i]), i=mm[m-1]..d-1)});
if P[m, d] <> {} and not found then mm[m]:= d; found:= true: L[m]:= min(P[m, d]) fi;
od;
if not found then break fi;
od:
seq(L[i], i=2..m-1);
CROSSREFS
Sequence in context: A180833 A180821 A361889 * A285926 A197599 A197983
KEYWORD
nonn,base
AUTHOR
Robert Israel, Oct 20 2023
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 June 12 21:26 EDT 2024. Contains 373360 sequences. (Running on oeis4.)