A272672 Numbers n such that the decimal concatenations 1n and 2n are both squares.
1025, 102500, 1390625, 10250000, 96700625, 139062500, 1025000000, 9670062500, 13906250000, 102500000000, 967006250000, 1390625000000, 10250000000000, 17654697265625, 96700625000000, 139062500000000, 910400191015625
Offset: 1
Examples
1025 is a member because 11025 = 105^2 and 21025 = 145^2.
Links
- Nathan Fox, Table of n, a(n) for n = 1..728
- Chai Wah Wu, Primitive terms < 10^1000
Programs
-
Magma
[n: n in [1..10000000 ] | IsSquare(Seqint(Intseq(n) cat Intseq(1))) and IsSquare(Seqint(Intseq(n) cat Intseq(2)))]; // Marius A. Burtea, Mar 21 2019
-
Maple
t1:=[]; for k from 1 to 2000000 do if issqr(k+10^length(k)) and issqr(k+2*10^length(k)) then t1:=[op(t1),k]; fi; od; t1;
-
PARI
is(n)=issquare(eval(Str(1,n))) && issquare(eval(Str(2,n))) \\ Charles R Greathouse IV, May 20 2016
Extensions
a(5)-a(17) from Alois P. Heinz, May 20 2016
Comments