cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A332168 a(n) = 6*(10^(2*n+1)-1)/9 + 2*10^n.

This page as a plain text file.
%I A332168 #9 Oct 04 2021 19:28:35
%S A332168 8,686,66866,6668666,666686666,66666866666,6666668666666,
%T A332168 666666686666666,66666666866666666,6666666668666666666,
%U A332168 666666666686666666666,66666666666866666666666,6666666666668666666666666,666666666666686666666666666,66666666666666866666666666666,6666666666666668666666666666666
%N A332168 a(n) = 6*(10^(2*n+1)-1)/9 + 2*10^n.
%H A332168 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (111,-1110,1000).
%F A332168 a(n) = 6*A138148(n) + 8*10^n = A002280(2n+1) + 2*10^n = 2*A332134(n).
%F A332168 G.f.: (8 - 202*x - 400*x^2)/((1 - x)(1 - 10*x)(1 - 100*x)).
%F A332168 a(n) = 111*a(n-1) - 1110*a(n-2) + 1000*a(n-3) for n > 2.
%p A332168 A332168 := n -> 6*(10^(2*n+1)-1)/9+2*10^n;
%t A332168 Array[6 (10^(2 # + 1)-1)/9 + 2*10^# &, 15, 0]
%t A332168 Table[FromDigits[Join[PadRight[{},n,6],{8},PadRight[{},n,6]]],{n,0,20}] (* _Harvey P. Dale_, Oct 04 2021 *)
%o A332168 (PARI) apply( {A332168(n)=10^(n*2+1)\9*6+2*10^n}, [0..15])
%o A332168 (Python) def A332168(n): return 10**(n*2+1)//9*6+2*10**n
%Y A332168 Cf. A002275 (repunits R_n = (10^n-1)/9), A002280 (6*R_n), A011557 (10^n).
%Y A332168 Cf. A138148 (cyclops numbers with binary digits), A002113 (palindromes).
%Y A332168 Cf. A332118 .. A332178, A181965 (variants with different repeated digit 1, ..., 9).
%Y A332168 Cf. A332160 .. A332169 (variants with different middle digit 0, ..., 9).
%K A332168 nonn,base,easy
%O A332168 0,1
%A A332168 _M. F. Hasler_, Feb 09 2020