login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A182420 a(0)=0, a(n) = (a(n-1) XOR n) * n. 1
0, 1, 6, 15, 44, 205, 1218, 8547, 68440, 615897, 6158910, 67747911, 812974980, 10568674805, 147961447354, 2219421710235, 35510747363504, 603682705179313, 10866288693227382, 206459485171319935, 4129189703426398300, 86712983771954363901 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Table of n, a(n) for n=0..21.

FORMULA

a(0)=0, a(n) = (a(n-1) XOR n) * n, where XOR is the bitwise exclusive-OR operator.

PROG

(Python)

a=0

for i in range(1, 55):

. print a,

. a ^= i

. a *= i

CROSSREFS

Cf. A182251, A182390.

Sequence in context: A137806 A193449 A197160 * A117961 A327769 A318482

Adjacent sequences:  A182417 A182418 A182419 * A182421 A182422 A182423

KEYWORD

nonn,base

AUTHOR

Alex Ratushnyak, Apr 28 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 16 11:33 EDT 2021. Contains 343942 sequences. (Running on oeis4.)