OFFSET
1,2
COMMENTS
We can classify all numbers as 'reachable' or 'unreachable' as the linear sum of previous term squares, this sequence is then the list of 'unreachable' terms.
LINKS
Sean A. Irvine, Java program (github)
EXAMPLE
106 is unreachable, but 107 = -1^2 + 6^2 - 7^2 + 11^2.
PROG
(Python)
from itertools import islice
def A390487_gen(): # generator of terms
bset, a = {0, 1}, 2
yield 1
while True:
yield a
bset = set().union(*({d, d+a**2, abs(d-a**2)} for d in bset))
a += 1
while a in bset:
a += 1
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Benjamin W P Cornish, Nov 07 2025
EXTENSIONS
a(20)-a(27) from Sean A. Irvine, Nov 12 2025
STATUS
approved
