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!)
A220780 Nonzero terms of A220779: exponent of highest power of 2 dividing an even sum 1^n + 2^n + ... + n^n. 2
2, 1, 4, 2, 2, 1, 6, 3, 2, 1, 4, 2, 2, 1, 8, 4, 2, 1, 4, 2, 2, 1, 6, 3, 2, 1, 4, 2, 2, 1, 10, 5, 2, 1, 4, 2, 2, 1, 6, 3, 2, 1, 4, 2, 2, 1, 8, 4, 2, 1, 4, 2, 2, 1, 6, 3, 2, 1, 4, 2, 2, 1, 12, 6, 2, 1, 4, 2, 2, 1, 6, 3, 2, 1, 4, 2, 2, 1, 8, 4, 2, 1, 4, 2, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
2-adic valuation of Sum_{k=1..n} k^n for n == 0 or 3 mod 4.
See references, links, formulas, and example in A220779.
LINKS
MATHEMATICA
Table[n = 2*k + Mod[k, 2]; IntegerExponent[ Sum[a^n, {a, 1, n}], 2], {k, 150}]
PROG
(Python)
from sympy import harmonic
def A220780(n): return (~(m:=int(harmonic(k:=(n<<1)+(n&1), -k)))&m-1).bit_length() # Chai Wah Wu, Jul 11 2022
CROSSREFS
Sequence in context: A257495 A120025 A109090 * A323915 A080100 A365425
KEYWORD
nonn
AUTHOR
Jonathan Sondow, Dec 20 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 1 15:48 EDT 2024. Contains 373025 sequences. (Running on oeis4.)