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.

A125022 Numbers with a unique partition as the sum of 2 squares x^2 + y^2.

Original entry on oeis.org

0, 1, 2, 4, 5, 8, 9, 10, 13, 16, 17, 18, 20, 26, 29, 32, 34, 36, 37, 40, 41, 45, 49, 52, 53, 58, 61, 64, 68, 72, 73, 74, 80, 81, 82, 89, 90, 97, 98, 101, 104, 106, 109, 113, 116, 117, 121, 122, 128, 136, 137, 144, 146, 148, 149, 153, 157, 160, 162, 164, 173, 178, 180, 181
Offset: 1

Views

Author

Artur Jasinski, Nov 16 2006

Keywords

Comments

A000161(a(n)) = 1. [Reinhard Zumkeller, Aug 16 2011]

Crossrefs

Programs

  • Haskell
    import Data.List (elemIndices)
    a125022 n = a125022_list !! (n-1)
    a125022_list = elemIndices 1 a000161_list
    -- Reinhard Zumkeller, Aug 16 2011
  • Mathematica
    Select[Range[0,200],Length@PowersRepresentations[#,2,2]==1&] (* Giorgos Kalogeropoulos, Mar 21 2021 *)

Formula

a(n) = A125021(n)/2.

Extensions

Name edited by Giorgos Kalogeropoulos, Mar 21 2021