login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

a(n) is the numerator of the smallest nonnegative fraction r such that round(10^d*r) = n, where d is the number of digits of n and Gaussian rounding (round half to even) is applied.
1

%I #5 May 20 2018 11:30:13

%S 0,1,1,2,3,1,5,2,3,6,2,2,3,12,5,9,9,1,7,5,8,8,20,16,4,13,25,22,11,2,

%T 18,18,23,27,33,29,27,23,3,37,32,32,22,37,37,41,41,20,19,33,1,50,17,

%U 52,38,6,5,13,23,55,25,23,8,62,47,20,19,2,27,37,57,55

%N a(n) is the numerator of the smallest nonnegative fraction r such that round(10^d*r) = n, where d is the number of digits of n and Gaussian rounding (round half to even) is applied.

%p # Function r is defined in A304879.

%p a := n -> numer(r(n)):

%p seq(a(n), n = 0..71);

%Y Cf. A304879.

%K nonn,frac

%O 0,4

%A _Peter Luschny_, May 20 2018