login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A215884 Written in base 5, n ends in a(n) consecutive nonzero digits. 3
0, 1, 1, 1, 1, 0, 2, 2, 2, 2, 0, 2, 2, 2, 2, 0, 2, 2, 2, 2, 0, 2, 2, 2, 2, 0, 1, 1, 1, 1, 0, 3, 3, 3, 3, 0, 3, 3, 3, 3, 0, 3, 3, 3, 3, 0, 3, 3, 3, 3, 0, 1, 1, 1, 1, 0, 3, 3, 3, 3, 0, 3, 3, 3, 3, 0, 3, 3, 3, 3, 0, 3, 3, 3, 3, 0, 1, 1, 1, 1, 0, 3, 3, 3, 3, 0, 3, 3, 3, 3, 0, 3, 3, 3, 3, 0, 3, 3, 3, 3, 0, 1, 1, 1, 1, 0, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,7

COMMENTS

Sequences A215879, A215883 and A215887 are the base 3, 4 and 10 analogs, while the base 2 analog of this sequence coincides (up to a shift in the index) with the 2-adic valuation A007814, cf. comments there.

LINKS

Table of n, a(n) for n=0..106.

EXAMPLE

The numbers 24,...,31 are written in base 5 as 44,100,101,102,103,104,110,111 and thus end in a string of a(24..31)=2,0,1,1,1,1,0,3 nonzero digits.

PROG

(PARI) a(n, b=5)=n=divrem(n, b); for(c=0, 9e9, n[2]||return(c); n=divrem(n[1], b))

(PARI) a(n)=my(k); while(n%5, n\=5; k++); k \\ Charles R Greathouse IV, Sep 26 2013

CROSSREFS

Sequence in context: A053398 A065833 A245476 * A305029 A097033 A268686

Adjacent sequences:  A215881 A215882 A215883 * A215885 A215886 A215887

KEYWORD

nonn,base

AUTHOR

M. F. Hasler, Aug 25 2012

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 12 16:56 EDT 2021. Contains 343825 sequences. (Running on oeis4.)