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!)
A215236 Greatest integer k such that n^i has no identical consecutive digits for i = 0..k. 4
15, 10, 7, 10, 4, 5, 5, 5, 1, 0, 1, 8, 2, 1, 3, 6, 4, 4, 1, 1, 0, 5, 3, 5, 4, 3, 7, 4, 1, 5, 4, 0, 1, 1, 2, 6, 1, 3, 1, 4, 2, 3, 0, 2, 1, 1, 2, 2, 1, 6, 3, 2, 5, 0, 3, 3, 1, 3, 1, 2, 1, 2, 2, 1, 0, 1, 2, 3, 1, 2, 6, 5, 2, 5, 1, 0, 2, 3, 1, 2, 2, 1, 4, 1, 3, 5, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

2,1

LINKS

T. D. Noe, Table of n, a(n) for n = 2..10000

FORMULA

a(n) = A217157(n) - 1. - Georg Fischer, Nov 25 2020

EXAMPLE

a(2) = 15 because the powers of 2 are 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536 and only the 16th power has consecutive identical digits.

MATHEMATICA

Table[k = 1; While[! MemberQ[Differences[IntegerDigits[n^k]], 0], k++]; k = k - 1, {n, 2, 100}]

CROSSREFS

Cf. A216063 (highest power of n having different consecutive digits), A217157.

Sequence in context: A009929 A166523 A123542 * A040212 A299316 A321419

Adjacent sequences:  A215233 A215234 A215235 * A215237 A215238 A215239

KEYWORD

nonn,base

AUTHOR

T. D. Noe, Sep 17 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 2 09:26 EDT 2022. Contains 354988 sequences. (Running on oeis4.)