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.

A269700 a(n) = floor( Product_{k>=0} (1 + n/k!) ).

Original entry on oeis.org

1, 7, 26, 69, 151, 293, 519, 862, 1361, 2062, 3019, 4297, 5969, 8121, 10848, 14261, 18481, 23646, 29908, 37437, 46419, 57061, 69586, 84242, 101297, 121042, 143793, 169893, 199710, 233642, 272117, 315592, 364560, 419545, 481109, 549849, 626403, 711448, 805703
Offset: 0

Views

Author

Daniel Suteu, Mar 03 2016

Keywords

Examples

			For n=3, a(3) = floor(69.52294621467075235981513247145953...) = 69.
		

Crossrefs

Cf. A238695.

Programs

  • Mathematica
    Table[Floor@ Product[1 + n/k!, {k, 0, 10^2}], {n, 0, 38}] (* Michael De Vlieger, Mar 27 2016 *)
  • PARI
    a(n) = floor(prodinf(k=0, 1+n/k!)); \\ Michel Marcus, Mar 04 2016
  • Sidef
    func a(n) {
        var (prod=1, prev=1)
        for i in (0 ..^ Inf) {
            prod *= (1 + n/i!)
            break if (prod/prev <= 1+1e-100)
            prev = prod
        }
        return floor(prod)
    }
    range(0, 100).each { |n| say a(n) }