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.

Showing 1-1 of 1 results.

A360422 Numbers k such that k^2 + (sum of fourth powers of the digits of k^2) is a square.

Original entry on oeis.org

0, 89, 137, 6985
Offset: 1

Views

Author

Robert Israel and Will Gosnell, Feb 06 2023

Keywords

Comments

Since A055013(k) < 9^4*(1+log_10(k)) and k^2 + 9^4*(1+log_10(k^2)) < (k+1)^2 for k > 32918, one need only search up to k = 32918.

Examples

			a(3) = 137 is a term because 137^2 = 18769 and 18769 + 1^4 + 8^4 + 7^4 + 6^4 + 9^4 = 182^2.
		

Crossrefs

Programs

  • Maple
    select(n -> issqr(n^2 + add(t^4, t = convert(n^2,base,10))), [$0..32918]);
  • Python
    from math import isqrt
    def sq(n): return isqrt(n)**2 == n
    def ok(n): return sq(n**2 + sum(int(d)**4 for d in str(n**2)))
    print([k for k in range(10**5) if ok(k)]) # Michael S. Branicky, Feb 12 2023
Showing 1-1 of 1 results.