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.

A176040 Periodic sequence: Repeat 3, 1.

This page as a plain text file.
%I A176040 #18 Mar 17 2025 14:07:37
%S A176040 3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,
%T A176040 3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,
%U A176040 3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3
%N A176040 Periodic sequence: Repeat 3, 1.
%C A176040 Interleaving of A010701 and A000012.
%C A176040 Also continued fraction expansion of (3+sqrt(21))/2.
%C A176040 Also decimal expansion of 31/99.
%C A176040 Essentially first differences of A014601.
%C A176040 Inverse binomial transform of 3 followed by A020707.
%C A176040 Second inverse binomial transform of A052919 without initial term 2.
%C A176040 Third inverse binomial transform of A007582 without initial term 1.
%C A176040 Exp( Sum_{n >= 1} a(n)*x^n/n ) = 1 + x + 2*x^2 + 2*x^3 + 3*x^4 + 3*x^5 + ... is the o.g.f. for A008619. - _Peter Bala_, Mar 13 2015
%H A176040 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1).
%F A176040 a(n) = 2+(-1)^n.
%F A176040 a(n) = a(n-2) for n > 1; a(0) = 3, a(1) = 1.
%F A176040 a(n) = -a(n-1)+4 for n > 0; a(0) = 3.
%F A176040 a(n) = 3*((n+1) mod 2)+(n mod 2).
%F A176040 a(n) = A010684(n+1).
%F A176040 G.f.: (3+x)/((1-x)*(1+x)).
%F A176040 From _Amiram Eldar_, Jan 01 2023: (Start)
%F A176040 Multiplicative with a(2^e) = 3, and a(p^e) = 1 for p >= 3.
%F A176040 Dirichlet g.f.: zeta(s)*(1+2^(1-s)). (End)
%t A176040 PadRight[{},120,{3,1}] (* or *) LinearRecurrence[{0,1},{3,1},120] (* _Harvey P. Dale_, Mar 11 2015 *)
%o A176040 (Magma) &cat[ [3, 1]: n in [0..52] ];
%o A176040 [ 2+(-1)^n: n in [0..104] ];
%Y A176040 Cf. A153284, A010701 (all 3's sequence), A000012 (all 1's sequence), A090458 (decimal expansion of (3+sqrt(21))/2), A010684 (repeat 1, 3), A014601 (congruent to 0 or 3 mod 4), A020707 (2^(n+2)), A052919, A007582 (2^(n-1)*(1+2^n)), A008619.
%K A176040 cofr,cons,easy,nonn,mult
%O A176040 0,1
%A A176040 _Klaus Brockhaus_, Apr 07 2010