A259299 The decimal expansion of n/(n+1) until it terminates or repeats, shown without the decimal point.
0, 5, 6, 75, 8, 83, 857142, 875, 8, 9, 90, 916, 923076, 9285714, 93, 9375, 9411764705882352, 94, 947368421052631578, 95, 952380, 954, 9565217391304347826086, 9583, 96, 9615384, 962, 96428571, 9655172413793103448275862068, 96, 967741935483870, 96875, 96, 97058823529411764, 9714285, 972, 972
Offset: 0
Examples
a(1)=5 (1/2=0.5), a(2)=6 (2/3=0.6666...=6), a(3)=75 (3/4=0.75=75).
Links
- Doug Bell, Table of n, a(n) for n = 0..1000
Programs
-
Mathematica
Array[FromDigits@ Flatten@ First@ RealDigits[(# - 1)/#] &, 37] (* Michael De Vlieger, Aug 18 2015 *)
Comments