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!)
A198486 Numbers with the property that all pairs of consecutive digits differ by 9. 1
1, 2, 3, 4, 5, 6, 7, 8, 9, 90, 909, 9090, 90909, 909090, 9090909, 90909090, 909090909, 9090909090, 90909090909, 909090909090, 9090909090909, 90909090909090, 909090909090909, 9090909090909090, 90909090909090909, 909090909090909090, 9090909090909090909 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
t = {1, 2, 3, 4, 5, 6, 7, 8, 9}; Do[AppendTo[t, 10*t[[-1]]]; AppendTo[t, 10*t[[-1]] + 9], {9}]; t (* T. D. Noe, Oct 22 2013 *)
PROG
(Python)
def A198486():
print('Numbers whose consecutive digits differ by 9')
for i in range(1, 100001):
b, n = True, i
if n > 9:
while n > 9:
a = abs((n // 10) % 10 - n % 10)
if a != 9: b = False
n = n // 10
if b: print(i, end=', ')
return
CROSSREFS
Sequence in context: A078188 A240511 A345406 * A061805 A280658 A061219
KEYWORD
nonn,base
AUTHOR
Pieter Stadhouders, Oct 20 2013
EXTENSIONS
More terms from T. D. Noe, Oct 22 2013
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 May 18 06:23 EDT 2024. Contains 372618 sequences. (Running on oeis4.)