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.

A227364 a(n) = 1 + 2*3 + 4*5*6 + 7*8*9*10 + ... + ...*n (see Example lines).

Original entry on oeis.org

0, 1, 3, 7, 11, 27, 127, 134, 183, 631, 5167, 5178, 5299, 6883, 29191, 365527, 365543, 365799, 370423, 458551, 2226007, 39435607, 39435629, 39436113, 39447751, 39739207, 47329207, 252562807, 6006997207, 6006997236, 6006998077, 6007024177, 6007860247, 6035477527, 6975328087
Offset: 0

Views

Author

Alex Ratushnyak, Jul 07 2013

Keywords

Examples

			a(5) = 1 + 2*3 + 4*5 = 27;
a(6) = 1 + 2*3 + 4*5*6 = 127;
a(7) = 1 + 2*3 + 4*5*6 + 7 = 134.
		

Crossrefs

Programs

  • Python
    for n in range(55):
      sum = 0
      i = k = 1
      while i<=n:
        product = 1
        for x in range(k):
          product *= i
          i += 1
          if i>n: break
        sum += product
        k += 1
      print(str(sum), end=',')