The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A240754 Numbers k with digit_sum(k*k) - 1 = digit_sum((k+1)*(k+1)). 4
8, 26, 53, 98, 107, 143, 161, 170, 179, 188, 224, 233, 242, 260, 269, 278, 287, 296, 350, 368, 386, 404, 413, 431, 449, 476, 494, 503, 539, 548, 557, 584, 593, 629, 638, 647, 674, 683, 737, 746, 773, 791, 818, 827, 863, 872, 908, 926, 944, 998, 1007, 1043 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
A240752(a(n)) = 0.
LINKS
PROG
(Haskell)
import Data.List (elemIndices)
a240754 n = a240754_list !! (n-1)
a240754_list = elemIndices (-1) a240752_list
(Python)
def ds(n): return sum(map(int, str(n)))
def ok(n): return ds(n*n) - 1 == ds((n+1)*(n+1))
print(list(filter(ok, range(1044)))) # Michael S. Branicky, Aug 26 2021
CROSSREFS
Sequence in context: A138502 A143894 A126176 * A074238 A126264 A347677
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Apr 12 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 10 10:32 EDT 2024. Contains 373264 sequences. (Running on oeis4.)