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.

A021319 Decimal expansion of 1/315.

Original entry on oeis.org

0, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3, 1, 7, 4, 6, 0, 3
Offset: 0

Views

Author

Keywords

Comments

If the initial 0 is ignored, a(n) is periodic with period 6: [0, 3, 1, 7, 4, 6]. - Wesley Ivan Hurt, Oct 10 2014

Examples

			1/315 = 0.0031746031746031746031746031...
		

Crossrefs

Programs

  • Maple
    Digits:=100: evalf(1/315); # Wesley Ivan Hurt, Oct 10 2014
  • Mathematica
    RealDigits[1/315, 10, 100, -1][[1]] (* Wesley Ivan Hurt, Oct 10 2014 *)
    Join[{0},LinearRecurrence[{1, 0, -1, 1},{0, 3, 1, 7},98]] (* Ray Chandler, Aug 26 2015 *)

Formula

a(n) = a(n-1)-a(n-3)+a(n-4) for n>0, with a(0)=0; a(n) = A068028(n+1)-1 for n>0; a(n+1) = A020806(n)-1. - Wesley Ivan Hurt, Oct 10 2014
G.f.: x^2*(-6*x^2 + 2*x - 3)/(x^4 - x^3 + x - 1). - Chai Wah Wu, Sep 04 2025