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.

A182390 a(0)=0, a(n) = (a(n-1) * n) XOR n.

This page as a plain text file.
%I A182390 #14 Apr 15 2025 15:45:57
%S A182390 0,1,0,3,8,45,264,1855,14832,133497,1334960,14684571,176214856,
%T A182390 2290793125,32071103752,481066556279,7697064900448,130850103307633,
%U A182390 2355301859537376,44750735331210163,895014706624203240,18795308839108268061,413496794460381897320
%N A182390 a(0)=0, a(n) = (a(n-1) * n) XOR n.
%C A182390 For 0<n<12, a(n)=A000240(n-1).
%H A182390 Harvey P. Dale, <a href="/A182390/b182390.txt">Table of n, a(n) for n = 0..450</a>
%F A182390 a(0)=0, a(n) = (a(n-1) * n) XOR n, where XOR is the bitwise exclusive-OR operator.
%t A182390 nxt[{n_,a_}]:={n+1,BitXor[a(n+1),n+1]}; NestList[nxt,{0,0},30][[;;,2]] (* _Harvey P. Dale_, Mar 14 2023 *)
%o A182390 (Python)
%o A182390 a=0
%o A182390 for i in range(1,55):
%o A182390     print(a, end=', ')
%o A182390     a *= i
%o A182390     a ^= i
%Y A182390 Cf. A182249, A000240.
%K A182390 nonn,base
%O A182390 0,4
%A A182390 _Alex Ratushnyak_, Apr 27 2012