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.

A112668 Triangle read by rows: row n gives an n-term geometric progression with first term 1 such that the sum of the n terms is a multiple of n.

Original entry on oeis.org

1, 1, 3, 1, 4, 16, 1, 3, 9, 27, 1, 6, 36, 216, 1296, 1, 5, 25, 125, 625, 3125, 1, 8, 64, 512, 4096, 32768, 262144, 1, 3, 9, 27, 81, 243, 729, 2187, 1, 4, 16, 64, 256, 1024, 4096, 16384, 65536, 1, 9, 81, 729, 6561, 59049, 531441, 4782969, 43046721, 387420489, 1
Offset: 1

Views

Author

Amarnath Murthy, Aug 10 2005

Keywords

Examples

			1
1 3
1 4 16
1 3 9 27
1 6 36 216 1296
1 5 25 125 625 3125
...
		

Crossrefs

Programs

  • Maple
    A112668 := proc(n) local a2,i,a ; a2 := 2 ; while (1-a2^n)/(1-a2) mod n <> 0 do a2 := a2+1 ; od ; a := [] ; for i from 1 to n do a := [op(a), a2^(i-1)] ; od ; RETURN(a) ; end: for row from 1 to 14 do r := A112668(row) : for n from 1 to nops(r) do printf("%d, ",op(n,r)) ; od : od : # R. J. Mathar, Mar 13 2007
  • Mathematica
    Block[{a = {{1}}, k, s}, Do[k = 2; While[Mod[Total@ Set[s, NestList[# k &, 1, i - 1]], i] != 0, k++]; AppendTo[a, s], {i, 2, 10}]; a] // Flatten (* Michael De Vlieger, Dec 31 2020 *)

Extensions

More terms from R. J. Mathar, Mar 13 2007