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.

A244584 a(n) = n OR 3.

This page as a plain text file.
%I A244584 #21 Jan 19 2023 02:21:53
%S A244584 3,3,3,3,7,7,7,7,11,11,11,11,15,15,15,15,19,19,19,19,23,23,23,23,27,
%T A244584 27,27,27,31,31,31,31,35,35,35,35,39,39,39,39,43,43,43,43,47,47,47,47,
%U A244584 51,51,51,51,55,55,55,55,59,59,59,59,63,63,63,63,67,67,67
%N A244584 a(n) = n OR 3.
%C A244584 Terms of A004767 repeated four times. [_Bruno Berselli_, Jul 01 2014]
%F A244584 a(n) = (n+3)- (n AND 3).
%F A244584 a(n) = (n XOR 3) + (n AND 3).
%F A244584 a(n) = n + ((3*n+3) mod 4).
%F A244584 a(n) = 4*floor((n+4)/4)-1.
%F A244584 G.f.: (3 + x^4)/(1 - x - x^4 + x^5). [_Bruno Berselli_, Jul 01 2014]
%p A244584 with(Bits): seq(Or(n,3),n = 1..60);
%o A244584 (Magma) [BitwiseOr(n, 3): n in [0..70]]; // _Bruno Berselli_, Jul 01 2014
%o A244584 (Python)
%o A244584 def A244584(n): return n|3 # _Chai Wah Wu_, Jan 18 2023
%Y A244584 Cf. A004767.
%Y A244584 Cf. similar sequences listed in A244587.
%K A244584 nonn,easy
%O A244584 0,1
%A A244584 _Gary Detlefs_, Jun 30 2014