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-3 of 3 results.

A089787 a(4n-3), a(4n-2), a(4n-1), and a(4n) are the units digit of the n-th prime followed by 1, 3, 7, and 9 respectively.

Original entry on oeis.org

21, 23, 27, 29, 31, 33, 37, 39, 51, 53, 57, 59, 71, 73, 77, 79, 11, 13, 17, 19, 31, 33, 37, 39, 71, 73, 77, 79, 91, 93, 97, 99, 31, 33, 37, 39, 91, 93, 97, 99, 11, 13, 17, 19, 71, 73, 77, 79, 11, 13, 17, 19, 31, 33, 37, 39, 71, 73, 77, 79, 31, 33, 37, 39, 91, 93, 97, 99, 11
Offset: 1

Views

Author

Roger L. Bagula, Jan 09 2004

Keywords

Crossrefs

Cf. A089784 (essentially the same).

Programs

  • Mathematica
    Flatten[Table[Mod[Prime[n], 10]*10+{1, 3, 7, 9}, {n, 1, 50}]]
    a[n_] := Mod[Prime[Floor[(n + 3)/4]], 10]*10 + {1, 3, 7,
    9}[[Mod[n - 1, 4] + 1]] (* Charles R Greathouse IV, Jan 02 2013 *)
    Table[10*Mod[Prime[n],10]+{1,3,7,9},{n,30}]//Flatten (* Harvey P. Dale, Aug 24 2019 *)
  • PARI
    a(n)=prime((n+3)\4)%10*10+[9,1,3,7][n%4+1] \\ Charles R Greathouse IV, Jan 02 2013

Formula

a(n) = 5+(-1)^n+3*cos(n*Pi/2)-3*sin(n*Pi/2)+10*(prime(floor((n+3)/4)) mod 10). - Wesley Ivan Hurt, May 06 2021

A089784 A nonsense sequence.

Original entry on oeis.org

81, 83, 87, 89, 71, 73, 77, 79, 51, 53, 57, 59, 31, 33, 37, 39, 11, 13, 17, 19, 31, 33, 37, 39, 71, 73, 77, 79, 91, 93, 97, 99, 31, 33, 37, 39, 91, 93, 97, 99, 11, 13, 17, 19, 71, 73, 77, 79, 11, 13, 17, 19, 31, 33, 37, 39, 71, 73, 77, 79, 31, 33, 37, 39, 91, 93, 97, 99, 11
Offset: 1

Views

Author

Roger L. Bagula, Jan 09 2004

Keywords

Crossrefs

Cf. A089787 (essentially the same).

Programs

  • Mathematica
    a={1, 3, 7, 9};
    Flatten[Table[Mod[Abs[10-Prime[n]], 10]*10+a, {n, 50}]]

A178148 Decimal expansion of (243+17*sqrt(285))/402.

Original entry on oeis.org

1, 3, 1, 8, 3, 9, 0, 6, 2, 5, 0, 6, 0, 3, 9, 8, 6, 2, 4, 6, 5, 9, 1, 7, 1, 9, 4, 0, 2, 0, 3, 6, 7, 1, 3, 1, 7, 9, 3, 6, 3, 7, 8, 3, 8, 7, 2, 6, 2, 7, 4, 2, 5, 8, 0, 0, 8, 7, 1, 8, 0, 7, 5, 4, 6, 6, 3, 8, 1, 6, 2, 5, 5, 1, 1, 2, 0, 9, 6, 3, 6, 7, 7, 9, 0, 0, 3, 0, 7, 6, 7, 5, 7, 3, 7, 2, 1, 6, 4, 2, 5, 1, 8, 5, 8
Offset: 1

Views

Author

Klaus Brockhaus, May 21 2010

Keywords

Comments

Continued fraction expansion of (243+17*sqrt(285))/402 is A131712.

Examples

			(243+17*sqrt(285))/402 = 1.31839062506039862465...
		

Crossrefs

Cf. A176104 (decimal expansion of sqrt(285)), A131712 (repeat 1, 3, 7, 9).
Showing 1-3 of 3 results.