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-2 of 2 results.

A333909 Numbers k such that phi(k) is the sum of 2 squares, where phi is the Euler totient function (A000010).

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 8, 10, 11, 12, 15, 16, 17, 19, 20, 22, 24, 25, 27, 30, 32, 33, 34, 37, 38, 40, 41, 44, 48, 50, 51, 53, 54, 55, 57, 59, 60, 63, 64, 66, 68, 73, 74, 75, 76, 80, 82, 83, 85, 88, 91, 95, 96, 100, 101, 102, 106, 107, 108, 110, 111, 114, 117, 118, 120
Offset: 1

Views

Author

Amiram Eldar, Apr 09 2020

Keywords

Examples

			1 is a term since phi(1) = 1 = 0^2 + 1^2.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[120], SquaresR[2, EulerPhi[#]] > 0 &]
  • Python
    from itertools import count, islice
    from sympy import factorint, totient
    def A333909_gen(): # generator of terms
        return filter(lambda n:all(p & 3 != 3 or e & 1 == 0 for p, e in factorint(totient(n)).items()),count(1))
    A333909_list = list(islice(A333909_gen(),30)) # Chai Wah Wu, Jun 27 2022

Formula

c1 * x/log(x)^(3/2) < N(x) < c2 * x/log(x)^(3/2), where N(x) is the number of terms <= x, and c1 and c2 are two positive constants (Banks et al., 2005).

A333913 Numbers k such that lambda(k) is not the sum of 3 squares, where lambda is the Carmichael lambda function (A002322).

Original entry on oeis.org

29, 58, 61, 87, 113, 116, 122, 143, 145, 155, 157, 169, 174, 175, 183, 225, 226, 232, 235, 241, 244, 286, 290, 305, 310, 314, 317, 325, 338, 339, 348, 349, 350, 366, 371, 385, 395, 403, 427, 429, 435, 449, 450, 452, 464, 465, 470, 471, 477, 482, 488, 493, 495
Offset: 1

Views

Author

Amiram Eldar, Apr 09 2020

Keywords

Comments

Pollack (2011) proved that this sequence has a lower and an upper asymptotic densities, and conjectured that they do not coincide.

Examples

			1 is not a term since lambda(1) = 1 = 0^2 + 0^2 + 1^2 is the sum of 3 squares.
29 is a term since lambda(29) = 28 is not the sum of 3 squares.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[500], SquaresR[3, CarmichaelLambda[#]] == 0 &]
Showing 1-2 of 2 results.