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”).

A266818
Consider a number x = concat(a,b). Sequence lists numbers x such that digits of b^a end in x.
3
25, 96, 296, 568, 625, 696, 776, 1296, 1616, 3125, 3251, 4656, 5625, 5696, 6128, 6192, 6576, 7749, 9776, 17568, 26241, 34375, 40625, 47749, 51469, 51821, 53125, 56251, 58307, 59776, 61376, 65625, 71296, 71299, 71301, 71875, 76481, 86976, 90625, 99499, 99501, 109376
OFFSET
1,1
COMMENTS
25: 5^2 = 25;
96: 6^9 = 10077696 that ends in 96;
296: 6^29 = 36845653286788892983296 that ends in 296;
3125: 125^3 = 1953125 that ends in 3125.
MAPLE
with(numtheory): P:= proc(q) local a, b, c, d, k, n;
for n from 10 to q do d:=ilog10(n); for k from 1 to d do a:=(n mod 10^k)^trunc(n/10^k); b:=ilog10(a)+1;
if a mod 10^(d+1)=n then print(n); break; fi; od; od; end: P(10^6);
MATHEMATICA
Select[Range@ 110000, AnyTrue[Function[n, FromDigits@ If[Length@ # < IntegerLength@ n, #, Take[#, -IntegerLength@ n]] &@ IntegerDigits[#2^#1] & @@@ Map[Function[k, Map[FromDigits, TakeDrop[#, k]]], Range[Length@ # - 1]] &@ IntegerDigits@ n]@ #, Function[m, m == #]] &] (* Michael De Vlieger, Jan 14 2016 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Jan 04 2016
STATUS
approved