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!)
A004727 Delete all 8's from the sequence of nonnegative integers. 9
0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 1, 19, 20, 21, 22, 23, 24, 25, 26, 27, 2, 29, 30, 31, 32, 33, 34, 35, 36, 37, 3, 39, 40, 41, 42, 43, 44, 45, 46, 47, 4, 49, 50, 51, 52, 53, 54, 55, 56, 57, 5, 59, 60, 61, 62, 63, 64, 65, 66, 67, 6, 69, 70, 71 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
PROG
(Python)
def A004727(n):
l = len(str(n))
m = 8*(10**l-1)//9
k = n + l - int(n+l < m)
return 7 if k == m else int(str(k).replace('8', '')) # Chai Wah Wu, Apr 20 2021
CROSSREFS
Sequence in context: A161659 A089657 A224247 * A102352 A248182 A219227
KEYWORD
base,nonn
AUTHOR
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 April 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)