Jump to content


Welcome to BrainDen.com - Brain Teasers Forum

Welcome to BrainDen.com - Brain Teasers Forum. Like most online communities you must register to post in our community, but don't worry this is a simple free process. To be a part of BrainDen Forums you may create a new account or sign in if you already have an account.
As a member you could start new topics, reply to others, subscribe to topics/forums to get automatic updates, get your own profile and make new friends.

Of course, you can also enjoy our collection of amazing optical illusions and cool math games.

If you like our site, you may support us by simply clicking Google "+1" or Facebook "Like" buttons at the top.
If you have a website, we would appreciate a little link to BrainDen.

Thanks and enjoy the Den :-)
Guest Message by DevFuse
 

Photo
- - - - -

Closed form expression on steroids


Best Answer Prime, 29 January 2013 - 06:46 AM

But they don't need to be integers, those 11 periodic values.

Spoiler for one messy solution

Go to the full post


  • Please log in to reply
10 replies to this topic

#11 Prime

Prime

    Senior Member

  • Members
  • PipPipPipPip
  • 837 posts
  • Gender:Male
  • Location:Illinois, US

Posted 29 January 2013 - 10:42 PM

Funny.  :rolleyes: I felt uncomfortable about using such complex math as Lagrange Interpolating Polynomial while not remembering how it actually worked.


I set out to invent a simpler switching function, which would select one value out of 11 based on an integer variable N and then convert that value into an integer of my choice. And I have invented such formula!  :o Thereafter, I consulted a respectable mathematical reference website and discovered that my simple and beautiful switching function was the Lagrange Interpolating Polynomial! Now I understand how it works! It appears 18th century mathematicians (Waring and Euler) invented it just for this puzzle.

 

I shall give a better explanation the puzzle solution and Lagrange Polynomial. It could be useful to some math students and, perhaps, parents of high school students who are about to get bogged down in those dreaded AP math classes.

 

Spoiler for Lagrange Interpolating Polynomial

 

Lagrange Polynomial: http://mathworld.wol...Polynomial.html


Edited by Prime, 29 January 2013 - 10:43 PM.

  • 0

Past prime, actually.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users