A254648 Numbers n whose square representation in base 10 can be split into three parts whose sum is n.
36, 82, 91, 235, 379, 414, 675, 756, 792, 909, 918, 964, 991, 1296, 1702, 1782, 3366, 3646, 3682, 4132, 4906, 5149, 6832, 7543, 8416, 8767, 8856, 9208, 9325, 9586, 9621, 9765, 9901, 9945, 9955, 9991, 12222, 12727, 17271, 22231
Offset: 1
Examples
36^2 = 1296 and 1 + 29 + 6 = 36; 235^2 = 55225 and 5 + 5 + 225 = 235; 1782^2 = 3175524 and 3 + 1755 + 24 = 1782; 12727^2 = 161976529 and 1 + 6197 + 6529 = 12727.
Links
- Chai Wah Wu, Table of n, a(n) for n = 1..400
Programs
-
Python
from itertools import combinations A254648_list, n, n2 = [], 10, 100 while n < 10**4: m = str(n2) for a in combinations(range(1,len(m)),2): x, y, z = int(m[:a[0]]), int(m[a[0]:a[1]]), int(m[a[1]:]) if y != 0 and z != 0 and x+y+z == n: A254648_list.append(n) break n += 1 n2 += 2*n-1 # Chai Wah Wu, Aug 27 2017
Extensions
Removed terms 4879 and 5292 by Chai Wah Wu, Aug 27 2017
Comments