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

%I #8 Apr 23 2012 16:36:29

%S 4,5,14,45,180,905,5466,38297,306376,2757393,27574030,303314341,

%T 3639772188,47317038457,662438538482,9936578077425,158985249238800,

%U 2702749237059617,48649486267073430,924340239074395189,18486804781487903780

%N a(0)=4, a(n) = (a(n-1) OR n) * n.

%F a(0)=4, a(n)=(a(n-1) OR n) * n, where OR is the bitwise logical inclusive-OR operator

%o (Python)

%o a=4

%o for i in range(1,51):

%o . print a,

%o . a |= i

%o . a *= i

%K base,nonn

%O 0,1

%A _Alex Ratushnyak_, Apr 20 2012