login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A244584 a(n) = n OR 3. 2
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, 27, 27, 27, 31, 31, 31, 31, 35, 35, 35, 35, 39, 39, 39, 39, 43, 43, 43, 43, 47, 47, 47, 47, 51, 51, 51, 51, 55, 55, 55, 55, 59, 59, 59, 59, 63, 63, 63, 63, 67, 67, 67 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
Terms of A004767 repeated four times. [Bruno Berselli, Jul 01 2014]
LINKS
FORMULA
a(n) = (n+3)- (n AND 3).
a(n) = (n XOR 3) + (n AND 3).
a(n) = n + ((3*n+3) mod 4).
a(n) = 4*floor((n+4)/4)-1.
G.f.: (3 + x^4)/(1 - x - x^4 + x^5). [Bruno Berselli, Jul 01 2014]
MAPLE
with(Bits): seq(Or(n, 3), n = 1..60);
PROG
(Magma) [BitwiseOr(n, 3): n in [0..70]]; // Bruno Berselli, Jul 01 2014
(Python)
def A244584(n): return n|3 # Chai Wah Wu, Jan 18 2023
CROSSREFS
Cf. A004767.
Cf. similar sequences listed in A244587.
Sequence in context: A079084 A092323 A339053 * A369233 A092531 A125002
KEYWORD
nonn,easy
AUTHOR
Gary Detlefs, Jun 30 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)