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!)
A182249 a(0)=0, a(n) = (a(n-1) * n) OR n. 2
0, 1, 2, 7, 28, 141, 846, 5927, 47416, 426745, 4267450, 46941951, 563303420, 7322944461, 102521222462, 1537818336943, 24605093391088, 418286587648497, 7529158577672946, 143054012975785975, 2861080259515719516 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(0)=0, a(n)=(a(n-1)*n) OR n, where OR is the bitwise logical inclusive-OR operator.
MATHEMATICA
nxt[{n_, a_}]:={n+1, BitOr[a(n+1), n+1]}; Transpose[NestList[nxt, {0, 0}, 20]] [[2]] (* Harvey P. Dale, Aug 13 2013 *)
PROG
(Python)
a=0
for i in range(1, 51):
print(a, end=', ')
a *= i
a |= i
CROSSREFS
Sequence in context: A130906 A009628 A186763 * A030969 A294531 A030825
KEYWORD
base,nonn
AUTHOR
Alex Ratushnyak, Apr 20 2012
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 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)