login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A202780
Smallest number whose cube begins and ends with the same n digits, and with any other digit(s) in between.
0
7, 108, 335, 6667, 104636, 333335, 4504625, 70585736, 333333335, 1818181815, 33531510511, 333333333335, 198817904169
OFFSET
1,1
EXAMPLE
335^3 = 37595375 starts and ends with the same 3 digits.
MATHEMATICA
lst = {}; Do[n = Ceiling[(10^(2*k))^(1/3)]; While[True, d = IntegerDigits[n^3]; If[Take[d, k] == Take[d, -k], Break[]]; n++]; AppendTo[lst, n], {k, 6}]; lst
CROSSREFS
Cf. A161355.
Sequence in context: A231519 A367157 A197447 * A297804 A218819 A033516
KEYWORD
base,more,nonn
AUTHOR
EXTENSIONS
a(9)-a(10) from Donovan Johnson, Jan 12 2012
a(11)-a(13) from Giovanni Resta, Apr 18 2016
STATUS
approved