login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A172503 a(n) = numerator of fraction a/b, where gcd(a, b) = 1, whose decimal representation has the form (n).(n)(n)(n)... with period (n). 2
10, 20, 10, 40, 50, 20, 70, 80, 10, 1000, 100, 400, 1300, 1400, 500, 1600, 1700, 200, 1900, 2000, 700, 200, 2300, 800, 2500, 2600, 300, 2800, 2900, 1000, 3100, 3200, 100, 3400, 3500, 400, 3700, 3800, 1300, 4000, 4100, 1400, 4300, 400, 500, 4600, 4700, 1600, 4900, 5000 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(10) = 1000; 1000/99 = 10.10101010... (period 10).
a(9) = 10; 10/1 = 9.9999999...
PROG
(PARI) a(n) = my(qd = #digits(n)); numerator(n / (10^(qd)-1)) * 10^qd \\ David A. Corneth, Apr 28 2019
CROSSREFS
Cf. A172504 (denominators).
Sequence in context: A255529 A023916 A297353 * A107859 A294069 A249585
KEYWORD
nonn,frac,easy
AUTHOR
Jaroslav Krizek, Feb 05 2010
EXTENSIONS
More terms from David A. Corneth, Apr 28 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)