OFFSET
1,1
COMMENTS
Squares that can be split up in more than one way appear only once.
LINKS
Reiner Moewald and Giovanni Resta, Table of n, a(n) for n = 1..156 (first 22 terms from Reiner Moewald)
EXAMPLE
1024 = 32^2 and 10^2 + 24^2 = 26^2.
PROG
(Python)
import math
print("Start")
list =[]
for i in range(1, 100000):
a = i*i
b = str(a)
l = len(b)
for j in range(1, l):
a_1 = b[:j]
a_2 = b[j:]
c = int(a_1)*int(a_1)+int(a_2)*int(a_2)
sqrt_c = int(math.sqrt(int(c)))
if (sqrt_c * sqrt_c == c) and (int(a_2[:1]) > 0):
if not a in list:
list.append(a)
print(list)
print("End")
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reiner Moewald, Jul 25 2015
STATUS
approved