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.

A182249 a(0)=0, a(n) = (a(n-1) * n) OR n.

This page as a plain text file.
%I A182249 #17 May 20 2021 08:21:32
%S A182249 0,1,2,7,28,141,846,5927,47416,426745,4267450,46941951,563303420,
%T A182249 7322944461,102521222462,1537818336943,24605093391088,418286587648497,
%U A182249 7529158577672946,143054012975785975,2861080259515719516
%N A182249 a(0)=0, a(n) = (a(n-1) * n) OR n.
%H A182249 Harvey P. Dale, <a href="/A182249/b182249.txt">Table of n, a(n) for n = 0..449</a>
%F A182249 a(0)=0, a(n)=(a(n-1)*n) OR n, where OR is the bitwise logical inclusive-OR operator.
%t A182249 nxt[{n_,a_}]:={n+1,BitOr[a(n+1),n+1]}; Transpose[NestList[nxt,{0,0}, 20]] [[2]] (* _Harvey P. Dale_, Aug 13 2013 *)
%o A182249 (Python)
%o A182249 a=0
%o A182249 for i in range(1,51):
%o A182249     print(a, end=',')
%o A182249     a *= i
%o A182249     a |= i
%K A182249 base,nonn
%O A182249 0,3
%A A182249 _Alex Ratushnyak_, Apr 20 2012