|
|
A332168
|
|
a(n) = 6*(10^(2*n+1)-1)/9 + 2*10^n.
|
|
1
|
|
|
8, 686, 66866, 6668666, 666686666, 66666866666, 6666668666666, 666666686666666, 66666666866666666, 6666666668666666666, 666666666686666666666, 66666666666866666666666, 6666666666668666666666666, 666666666666686666666666666, 66666666666666866666666666666, 6666666666666668666666666666666
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (8 - 202*x - 400*x^2)/((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
|
A332168 := n -> 6*(10^(2*n+1)-1)/9+2*10^n;
|
|
MATHEMATICA
|
Array[6 (10^(2 # + 1)-1)/9 + 2*10^# &, 15, 0]
Table[FromDigits[Join[PadRight[{}, n, 6], {8}, PadRight[{}, n, 6]]], {n, 0, 20}] (* Harvey P. Dale, Oct 04 2021 *)
|
|
PROG
|
(PARI) apply( {A332168(n)=10^(n*2+1)\9*6+2*10^n}, [0..15])
(Python) def A332168(n): return 10**(n*2+1)//9*6+2*10**n
|
|
CROSSREFS
|
Cf. A138148 (cyclops numbers with binary digits), A002113 (palindromes).
Cf. A332160 .. A332169 (variants with different middle digit 0, ..., 9).
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|