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.

A053224 Numbers k for which sigma(k) < sigma(k+1).

Original entry on oeis.org

1, 2, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 47, 49, 51, 53, 55, 57, 59, 61, 62, 63, 65, 67, 69, 71, 73, 74, 75, 77, 79, 81, 83, 85, 87, 89, 91, 93, 95, 97, 99, 101, 103, 107, 109, 111, 113, 115, 119, 121, 123, 125, 127, 129, 131
Offset: 1

Views

Author

Asher Auel, Jan 06 2000

Keywords

Comments

The asymptotic density of this sequence is 1/2 (Erdős, 1936). - Amiram Eldar, Mar 19 2021

Crossrefs

Cf. A000203, A053222, A053226, A053230 (first differences).

Programs

  • Haskell
    import Data.List (elemIndices)
    a053224 n = a053224_list !! (n-1)
    a053224_list = map (+ 1) $ elemIndices True $
       zipWith (<) a000203_list $ tail a000203_list
    -- Reinhard Zumkeller, May 07 2012
    
  • Maple
    with(numtheory): seq( `if`(sigma(i) < sigma(i+1),i,[][]), i=1..134);
  • Mathematica
    Select[Range[150], DivisorSigma[1, #] < DivisorSigma[1, # + 1] &] (* Carl Najafi, Aug 16 2011 *)
  • PARI
    is(n)=sigma(n)Charles R Greathouse IV, Mar 09 2014