OFFSET
1,2
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..500
EXAMPLE
a(3) = 7 because 7^3 = 343 which starts with 3 and there is no number less than 7 with this property.
MATHEMATICA
Do[k = Floor[ Log[ 10, n] + 1]; While[ FromDigits[ Take[ IntegerDigits [k^n], Floor[ Log[ 10, n] + 1]]] != n, k++ ]; Print[k^n], {n, 1, 100} ]
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Robert G. Wilson v, Feb 08 2002
STATUS
approved