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.

User: Katie Khan

Katie Khan's wiki page.

Katie Khan has authored 1 sequences.

A376714 Sum of squares of the decimal digits of the n-th prime.

Original entry on oeis.org

4, 9, 25, 49, 2, 10, 50, 82, 13, 85, 10, 58, 17, 25, 65, 34, 106, 37, 85, 50, 58, 130, 73, 145, 130, 2, 10, 50, 82, 11, 54, 11, 59, 91, 98, 27, 75, 46, 86, 59, 131, 66, 83, 91, 131, 163, 6, 17, 57, 89, 22, 94, 21, 30, 78, 49, 121, 54, 102, 69, 77, 94, 58, 11
Offset: 1

Author

Katie Khan, Oct 02 2024

Keywords

Examples

			For n=7, the 7th prime = 17 and those digits 1^2 + 7^2 = 50 = a(7).
		

Crossrefs

Programs

  • Mathematica
    a[n_]:=Norm[IntegerDigits[Prime[n]]]^2; Array[a,64] (* Stefano Spezia, Oct 03 2024 *)
  • PARI
    a(n) = norml2(digits(prime(n))); \\ Michel Marcus, Oct 03 2024
    
  • Python
    from sympy import prime
    def A376714(n): return sum((0, 1, 4, 9, 16, 25, 36, 49, 64, 81)[int(d)] for d in str(prime(n)) if d>'0') # Chai Wah Wu, Oct 04 2024

Formula

a(n) = A003132(A000040(n)).