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!)
A004725 Delete all 6's from the sequence of nonnegative integers. 9
0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 1, 17, 18, 19, 20, 21, 22, 23, 24, 25, 2, 27, 28, 29, 30, 31, 32, 33, 34, 35, 3, 37, 38, 39, 40, 41, 42, 43, 44, 45, 4, 47, 48, 49, 50, 51, 52, 53, 54, 55, 5, 57, 58, 59, 0, 1, 2, 3, 4, 5, 7, 8, 9, 70, 71, 72, 73, 74, 75, 7 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
MATHEMATICA
d6[n_]:=Module[{c=DeleteCases[IntegerDigits[n], 6]}, If[c=={}, Nothing, FromDigits[ c]]]; Array[d6, 80, 0] (* Harvey P. Dale, Oct 09 2017 *)
PROG
(Python)
def A004725(n):
l = len(str(n))
m = 2*(10**l-1)//3
k = n + l - int(n+l < m)
return 5 if k == m else int(str(k).replace('6', '')) # Chai Wah Wu, Apr 20 2021
CROSSREFS
Sequence in context: A290019 A161924 A034153 * A129487 A097010 A351227
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 March 28 05:39 EDT 2024. Contains 371235 sequences. (Running on oeis4.)