OFFSET
1,1
PROG
(Python)
def ok(n):
s = str(n*(n+7)); h = (len(s)+1)//2; return int(s[:h])-1 == int(s[h:])
print(list(filter(ok, range(2, 10**6)))) # Michael S. Branicky, Jul 30 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Giovanni Resta, Feb 06 2006
STATUS
approved