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.

A212720 The periodic part of the decimal expansion of n/(n+1). Any initial 0's are to be placed at end of cycle.

Original entry on oeis.org

0, 6, 0, 0, 3, 857142, 0, 8, 0, 90, 6, 923076, 285714, 3, 0, 9411764705882352, 4, 947368421052631578, 0, 952380, 54, 9565217391304347826086, 3, 0, 615384, 962, 428571, 9655172413793103448275862068, 6, 967741935483870, 0, 96, 7058823529411764, 714285, 2, 972
Offset: 1

Views

Author

Jaroslav Krizek, Jun 01 2012

Keywords

Examples

			6/7 = 0.85714285714285714285714285714286... and digit-cycle is 857142, so a(6) = 857142.
		

Crossrefs

Cf. A036275 (periodic part of the decimal expansion of 1/n), A158911 (numbers n such that a(n)=0), A051037.

Programs

  • Mathematica
    Table[FromDigits[FindTransientRepeat[RealDigits[n/(n+1),10,100][[1]],3][[2]]],{n,40}] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Mar 07 2017 *)