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.

A111712 Arithmetic mean of the n-th row of triangle mentioned in A111710.

Original entry on oeis.org

1, 3, 6, 10, 16, 22, 31, 39, 51, 61, 76, 88, 106, 120, 141, 157, 181, 199, 226, 246, 276, 298, 331, 355, 391, 417, 456, 484, 526, 556, 601, 633, 681, 715, 766, 802, 856, 894, 951, 991, 1051, 1093, 1156, 1200, 1266, 1312, 1381, 1429, 1501, 1551, 1626, 1678
Offset: 1

Views

Author

Amarnath Murthy, Aug 24 2005

Keywords

Examples

			a(4) = (8+9+10+13)/4 =10
		

Crossrefs

Partial sums of A195013 prepended with 1.

Programs

  • Haskell
    a111712 n = a111712_list !! (n-1)
    a111712_list = scanl (+) 1 a195013_list
    -- Reinhard Zumkeller, Apr 06 2015
  • Mathematica
    With[{r = Range[50]}, Accumulate[Join[{1}, Riffle[2*r, 3*r]]]] (* or *)
    LinearRecurrence[{1, 2, -2, -1, 1}, {1, 3, 6, 10, 16}, 100] (* Paolo Xausa, Feb 09 2024 *)

Formula

a(1)=1, a(2n) = a(2n-1)+2n, a(2n+1)=a(2n)+3n. a(n) = A111711(n)+floor(n/2). - Franklin T. Adams-Watters, May 01 2006

Extensions

More terms from Franklin T. Adams-Watters, May 01 2006