OFFSET
1,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..131
Henry Ernest Dudeney, Amusements in Mathematics, 1917. See problem 113, "The torn number".
FORMULA
a(n) = A248353(n)^2.
EXAMPLE
a(7) = 88209 is a term as (88+209)^2 = 297^2 = 88209.
PROG
(Python)
from math import isqrt
from itertools import count, islice
def ok(n):
if n == 1: return True
r = isqrt(n)
if r**2 != n: return False
s = str(n)
return any(int(s[:i])+int(s[i:])== r for i in range(1, len(s)))
def agen(): yield from (k**2 for k in count(1) if ok(k**2))
print(list(islice(agen(), 29))) # Michael S. Branicky, Dec 29 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bodo Zinser, Feb 10 2005
EXTENSIONS
a(1)=1 prepended by Max Alekseyev, Aug 04 2017
a(27) and beyond from Michael S. Branicky, Dec 29 2024
STATUS
approved