The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A363288 a(n) = (2*n^3 - n^2 + 3*n - 2)/2. 1
1, 8, 26, 61, 119, 206, 328, 491, 701, 964, 1286, 1673, 2131, 2666, 3284, 3991, 4793, 5696, 6706, 7829, 9071, 10438, 11936, 13571, 15349, 17276, 19358, 21601, 24011, 26594, 29356, 32303, 35441, 38776, 42314, 46061, 50023, 54206, 58616, 63259, 68141, 73268, 78646, 84281 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
For n >= 3, a(n) is the sum of all multiples of n XOR n-1 that are <= n^2.
LINKS
FORMULA
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4).
a(n) = A002411(n) + (n-1)*A000217(n+1) - A046092(n-1).
a(n) = A162264(n-1) + 1 for n >= 2. - Hugo Pfoertner, Jun 02 2023
G.f.: x*(1 - 5*x + 2*x^2 - 4*x^3)/(1 - x)^4. - Stefano Spezia, Jun 03 2023
MATHEMATICA
Table[(2 n^3 - n^2 + 3 n - 2)/2, {n, 100}]
LinearRecurrence[{4, -6, 4, -1}, {1, 8, 26, 61}, 50]
PROG
(Magma) [(2*n^3 - n^2 + 3*n - 2)/2 : n in [1..50]];
(PARI) a(n) = n^3 - 1 + (-n^2 + 3*n)/2 \\ Winston de Greef, Jun 01 2023
CROSSREFS
Sequence in context: A129111 A002413 A218325 * A252870 A163121 A250352
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, May 25 2023
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 May 14 20:17 EDT 2024. Contains 372533 sequences. (Running on oeis4.)