All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > General
Miles to Kilometers (Posted on 2016-02-26) Difficulty: 3 of 5
Define F(N) = Min ((N- floor(N)), (ceil(N) – N))
Given that:
M miles = N kilometers, where M is a positive integer ≤ 2016 and N is a real number.

(I) Determine the value of M that yields the smallest value of F(N)
(II) What is the value of M yielding the next smallest value of F(N))?

No Solution Yet Submitted by K Sengupta    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
quick Excel solution | Comment 1 of 3
it is rather trivial to calculate F(N) for each integer value of M 1 to 2016, after doing that and sorting by F(N) (I used 1.60934 as my conversion factor M to N) I get the two smallest values for M = 1349 and 878

For M=1349, N=2170.99966 and F(N)=0.00034
for M=878, N=1413.00052 and F(N)=0.00052

Based on the definition of F(N), F(N) has a theoretical min of 0 and max of 0.5.  Min happening when N is an integer and max when fractional part of N is 0.5

Within the given constraints, M=1788 gets really close to the theoretical max with N=2877.49992

  Posted by Daniel on 2016-02-26 09:50:52
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (4)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2017 by Animus Pactum Consulting. All rights reserved. Privacy Information