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!)
A318462 a(n) = Sum_{d|n, d < n/d} (d XOR n/d) + {square root of n when n is a square}. 5
1, 3, 2, 7, 4, 8, 6, 15, 11, 18, 10, 24, 12, 20, 20, 31, 16, 35, 18, 30, 24, 32, 22, 52, 29, 42, 36, 44, 28, 56, 30, 63, 40, 54, 36, 87, 36, 56, 52, 90, 40, 80, 42, 80, 68, 68, 46, 116, 55, 93, 68, 86, 52, 112, 68, 112, 72, 90, 58, 144, 60, 92, 98, 127, 72, 136, 66, 122, 88, 128, 70, 171, 72, 114, 110, 136, 88, 152, 78 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = A318460(n) + A037213(n) = A000203(n) - 2*A318463(n).
PROG
(PARI) A318462(n) = { my(xors=0); fordiv(n, d, if(d<(n/d), xors += bitxor(d, n/d), if(d==(n/d), xors += d))); (xors); };
CROSSREFS
Sequence in context: A085168 A327119 A113658 * A273926 A304882 A059029
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Aug 28 2018
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 March 29 02:23 EDT 2024. Contains 371264 sequences. (Running on oeis4.)