Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #42 May 20 2018 16:14:18
%S 0,1,1,1,2,1,3,2,3,6,1,1,1,2,1,2,3,1,2,3,1,3,2,3,4,1,5,3,5,2,3,4,6,1,
%T 10,6,4,7,3,7,2,7,5,3,4,5,6,7,10,17,1,18,11,8,7,6,5,4,7,10,3,11,5,12,
%U 7,11,19,2,13,9,7,5,13,8,14,3,13,10,7,11,4
%N Numerators of fraction whose denominator is defined in A303612.
%p # The function r is defined in A303612.
%p a := n -> numer(r(n)): seq(a(n), n=0..99); # _Peter Luschny_, May 19 2018
%t a = {1};
%t For[i = 1, i <= 100, i++,
%t nmax = 10^(Floor[Log[10, i]] + 1);
%t r = i/nmax;
%t For[n = 1, n <= nmax, n++,
%t If[Round[Round[n r]/n, 1/nmax] == r,
%t a = Flatten[Append[a, Round[n r]]];
%t Break[];
%t ]]]
%Y Cf. A303612.
%K nonn,base,frac,easy
%O 0,5
%A _Luca Petrone_, Apr 30 2018