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.

A086954 Binomial transform of A061800.

Original entry on oeis.org

1, 1, 4, 14, 38, 92, 214, 490, 1108, 2474, 5462, 11948, 25942, 55978, 120148, 256682, 546134, 1157804, 2446678, 5155498, 10835284, 22719146, 47535446, 99265196, 206918998, 430615210, 894784852, 1856678570, 3847574870, 7963585196
Offset: 0

Views

Author

Paul Barry, Jul 25 2003

Keywords

Formula

a(n)=0^n+n2^(n-1)+sum{k=0..floor((n-1)/3) C(n-1, 3k+2) }
O.g.f.: (1-x)(1-3x+5x^2)/[(1-x+x^2)(-1+2x)^2]. - R. J. Mathar, Apr 02 2008

A199408 Triangle T(n,k) = n + k - gcd(n,k) read by rows, 1 <= n, 1 <= k <= n.

Original entry on oeis.org

1, 2, 2, 3, 4, 3, 4, 4, 6, 4, 5, 6, 7, 8, 5, 6, 6, 6, 8, 10, 6, 7, 8, 9, 10, 11, 12, 7, 8, 8, 10, 8, 12, 12, 14, 8, 9, 10, 9, 12, 13, 12, 15, 16, 9, 10, 10, 12, 12, 10, 14, 16, 16, 18, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 11, 12, 12, 12, 12, 16, 12
Offset: 1

Views

Author

Brian Hopkins, Nov 05 2011

Keywords

Comments

A diagonal of an n by k rectangle drawn on a square grid passes through T(n,k) squares: the diagonal enters n squares crossing horizontal segments and enters k squares crossing vertical segments. Gcd(n,k) counts the squares entered at a lattice point, which have been over-counted.

Examples

			T(6,4) = 6 + 4 - 2 = 8.
Triangular array begins
  1
  2  2
  3  4  3
  4  4  6  4
  5  6  7  8  5
  6  6  6  8 10  6
  7  8  9 10 11 12  7
  8  8 10  8 12 12 14  8
		

References

  • M. Ollerton, Mathematics Teacher's Handbook, Continuum, 2009, pp. 14-15.

Crossrefs

Cf. A049627, A074712. Third column A061800.

Programs

Formula

T(d*a,d*b) = d*T(a,b).
Showing 1-2 of 2 results.