Hacker News new | past | comments | ask | show | jobs | submit login

Challenge: find other sequences that you can use to convert, using integer coefficients in the recurrence. For miles to kilometers, you have to get a better approximation than phi.

I wasn't able to for miles to kilometers, but for pounds to kilograms I got:

a_n = a_{n-1} + 4*a_{n-2} - 3*a_{n-3}

Converges (slowly!) to a ratio of 2.199, so you can then take the previous term of the sequence to convert from pounds to kilograms.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: