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.

A214392 If n mod 4 = 0 then a(n) = n/4, otherwise a(n) = n.

This page as a plain text file.
%I A214392 #40 Nov 28 2022 08:28:07
%S A214392 0,1,2,3,1,5,6,7,2,9,10,11,3,13,14,15,4,17,18,19,5,21,22,23,6,25,26,
%T A214392 27,7,29,30,31,8,33,34,35,9,37,38,39,10,41,42,43,11,45,46,47,12,49,50,
%U A214392 51,13,53,54,55,14,57,58
%N A214392 If n mod 4 = 0 then a(n) = n/4, otherwise a(n) = n.
%C A214392 Equivalent to A065883 for n mod 16 != 0. - _Peter Kagey_, Sep 02 2015
%H A214392 Jeremy Gardiner, <a href="/A214392/b214392.txt">Table of n, a(n) for n = 0..1000</a>
%H A214392 <a href="/index/Rec#order_08">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,2,0,0,0,-1).
%F A214392 From _Bruno Berselli_, Oct 16 2012: (Start)
%F A214392 G.f.: x*(1+2*x+3*x^2+x^3+3*x^4+2*x^5+x^6)/(1-x^4)^2.
%F A214392 a(n) = ( 1 - (3/16)*(1+(-1)^n)*(1+i^(n(n+1))) )*n, where i=sqrt(-1).
%F A214392 a(n) = a(-n) = 2*a(n-4) - a(n-8). (End)
%F A214392 From _Werner Schulte_, Jul 08 2018: (Start)
%F A214392 a(n) for n > 0 is multiplicative with a(2^e) = 2^e if e < 2 and a(2^e) = 2^(e-2) if e > 1 otherwise a(p^e) = p^e for prime p > 2 and e >= 0.
%F A214392 Dirichlet g.f.: Sum_{n>0} a(n)/n^s = (1-3/4^s)*zeta(s-1).
%F A214392 Dirichlet inverse b(n) is multiplicative with b(2^e) = (-1)^e * A038754(e), e >= 0, and for prime p > 2: b(p) = -p and b(p^e) = 0 if e > 1. (End)
%F A214392 Sum_{k=1..n} a(k) ~ (13/32) * n^2. - _Amiram Eldar_, Nov 28 2022
%e A214392 a(16) = 16/4 = 4;
%e A214392 a(17) = 17.
%t A214392 Table[If[Mod[n, 4] == 0, n/4, n], {n, 0, 50}] (* _G. C. Greubel_, Oct 26 2017 *)
%t A214392 LinearRecurrence[{0,0,0,2,0,0,0,-1},{0,1,2,3,1,5,6,7},60] (* _Harvey P. Dale_, Mar 30 2018 *)
%o A214392 (PARI) a(n)=if(n%4,n,n/4) \\ _Charles R Greathouse IV_, Oct 16 2015
%Y A214392 Cf. A026741, A051176, A186646, A065883, A038754.
%K A214392 nonn,easy,mult
%O A214392 0,3
%A A214392 _Jeremy Gardiner_, Jul 15 2012