A255577 Numbers n not coprime to 10 such that there exists an integer k > 1 where n^k contains n as its last digits in base 10.
2, 4, 5, 6, 8, 12, 16, 24, 25, 28, 32, 36, 44, 48, 52, 56, 64, 68, 72, 75, 76, 84, 88, 92, 96, 104, 112, 125, 128, 136, 144, 152, 168, 176, 184, 192, 208, 216, 224, 232, 248, 256, 264, 272, 288, 296, 304, 312, 328
Offset: 1
Examples
For n = 2, we have n^5 = 2^5 = 32, whose last digit is 2 = n, so 2 is in the sequence. For n = 3, we have n^5 = 3^5 = 243, so 3 is in the sequence. For n = 4, we have n^3 = 4^3 = 64, so 4 is in the sequence. ... As a counterexample, n = 41 is not in the sequence because it is coprime with 10, even though we have 41^6 = 4750104241, whose last 2 digits are 41.
Links
- Seyed Ali Tavakoli-Nabavi, Table of n, a(n) for n = 1..100000
- Seyed Ali Tavakoli-Nabavi, Scatter plots: (n, a(n)) and (n, a(n) - a(n-1))
- Seyed Ali Tavakoli-Nabavi, Tcl program to generate the b-file
Programs
-
Maple
F:= d -> (seq(seq(2^d*(5*j+i),i=1..4),j=0..5^(d-1)-1), seq(5^d*(2*j+1),j=0..2^(d-1)-1)): sort(convert({seq(F(d),d=1..4)},list)); # Robert Israel, May 14 2015
-
Tcl
See a255577.tcl in LINKS.
Formula
For n > 6, a(n) > 2n since no term is divisible by 10 (but all are divisible by either 2 or 5). - Charles R Greathouse IV, May 13 2015
Comments