|
|
A332112
|
|
a(n) = (10^(2n+1)-1)/9 + 10^n.
|
|
17
|
|
|
2, 121, 11211, 1112111, 111121111, 11111211111, 1111112111111, 111111121111111, 11111111211111111, 1111111112111111111, 111111111121111111111, 11111111111211111111111, 1111111111112111111111111, 111111111111121111111111111, 11111111111111211111111111111, 1111111111111112111111111111111
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
COMMENTS
|
a(0) = 2 is the only prime in this sequence, since all other terms factor as a(n) = R(n+1)*(10^n+1), where R(n) = (10^n-1)/9.
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (2 - 101*x)/((1 - x)(1 - 10*x)(1 - 100*x)).
a(n) = 111*a(n-1) - 1110*a(n-2) + 1000*a(n-3) for n > 2.
|
|
MAPLE
|
A332112 := n -> (10^(2*n+1)-1)/9+10^n;
|
|
MATHEMATICA
|
Array[ (10^(2 # + 1)-1)/9 + 10^# &, 15, 0]
|
|
PROG
|
(PARI) apply( {A332112(n)=10^(n*2+1)\9*1+10^n}, [0..15])
(Python) def A332112(n): return 10**(n*2+1)//9+10**n
|
|
CROSSREFS
|
Cf. A138148 (cyclops numbers with binary digits), A002113 (palindromes).
Cf. A332132 .. A332192 (variants with different repeated digit 3, ..., 9).
Cf. A332113 .. A332119 (variants with different middle digit 3, ..., 9).
Cf. A331860 & A331861 (indices of primes in non-palindromic variants).
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|