The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A081224 Smallest k such that floor(k*e^Pi) begins with n (e^Pi=23.14069264...). 1
 5, 1, 13, 2, 22, 3, 31, 35, 4, 44, 5, 52, 6, 61, 65, 7, 74, 8, 83, 9, 91, 96, 1, 104, 11, 113, 12, 121, 126, 13, 134, 14, 143, 15, 152, 156, 16, 165, 17, 173, 18, 182, 19, 191, 195, 2, 204, 21, 212, 22, 221, 225, 23, 234, 24, 242, 25, 251, 255, 26, 264, 27, 273, 28, 281 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 COMMENTS Based on the sequences A078219 and A078220 of Amarnath Murthy LINKS EXAMPLE a(4) = 2 because floor(2*e^Pi) = 46. MAPLE C := exp(Pi); a := proc(M0, M, C) local i, d, f, g, k; description "returns the sequence 'a(n)' between 'M0' and 'M' where 'a(n)=min{k | floor(C*k) begins with n}."; d := N->`if`(N=0, [0], ListTools[Reverse](convert(N, base, 10))); f := (K, N)->`if`(d(floor(K*C))[1..min(nops(d(floor(K*C))), nops(d(N)))]=d(N), K, 0); for i from M0 to M do k := 0; while f(k, i)=0 do k := k+1; od; g(i) := f(k, i) od; return seq(g(j), j=M0..M); end proc; CROSSREFS Cf. A078219, A078220, A081223, A081225, A081226. Sequence in context: A286457 A327766 A147348 * A104793 A243883 A147004 Adjacent sequences:  A081221 A081222 A081223 * A081225 A081226 A081227 KEYWORD nonn,base AUTHOR Francois Jooste (pin(AT)myway.com), Mar 10 2003 STATUS approved

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

Last modified February 20 07:52 EST 2020. Contains 332069 sequences. (Running on oeis4.)