A236507 Smallest k that is a concatenation of two numbers x and y where x^2 + y^2 = n^2.
10, 20, 30, 40, 34, 60, 70, 80, 90, 68, 1100, 1200, 1205, 1400, 1209, 1600, 1508, 1800, 1900, 1216, 2100, 2200, 2300, 2400, 1520, 1024, 2700, 2800, 2021, 1824, 3100, 3200, 3300, 1630, 2128, 3600, 1235, 3800, 1536, 2432, 4009, 4200, 4300, 4400, 2736, 4600, 4700
Offset: 1
Examples
a(37) = 1235 because 1235 is the concatenation of 12 and 35, and 12^2 + 35^2 = 1369 = 37^2.
Links
- Michel Lagneau, Table of n, a(n) for n = 1..500
Programs
-
Maple
with(numtheory): for n from 1 to 50 do: ii:=0: for k from 1 to 10^8 while(ii=0)do : x:=convert(k,base,10):n1:=nops(x): if irem(n1,2)=0 then s:=sum('x[i]*10^(i-1) ', 'i'=1..n1/2): s1:=sum('x[j]*10^(j-n1/2-1) ', 'j'=n1/2+1..n1): if s^2+s1^2 = n^2 then ii:=1: printf(`%d, `,k): else fi: fi: od: od:
Comments