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.

A339276 Nearest integer to the fourth root of n.

Original entry on oeis.org

1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
Offset: 1

Views

Author

Amiram Eldar, Dec 13 2020

Keywords

Examples

			a(1) = 1 since 1^(1/4) = 1.
a(6) = 2 since 6^(1/4) = 1.565... and its nearest integer is 2.
		

Crossrefs

Programs

  • Mathematica
    Table[Round[Surd[n, 4]], {n, 1, 100}]
  • Python
    from sympy import integer_nthroot
    def A339276(n): return (m:=integer_nthroot(n,4)[0])+((n<<4)>=((m<<1)+1)**4) # Chai Wah Wu, Jun 06 2025

Formula

Sum_{n>=1} 1/a(n)^s = 4*zeta(s-3) + zeta(s-1), for s>4 (Borwein, 1994).