0
$\begingroup$

I need an equation for these set of inputs and outputs. Y will equal anything below 0 or above 9 so modulo might be needed. Also if x<0 y=0 . It's probably going to be a little complex so any common mathematical symbol can be used if needed.

>| X | Y | >| 0 | 0 | >| 1 | 0 | >| 2 | 0 | >| 3 | 0 | >| 4 | 1 | >| 5 | 3 | >| 6 | 6 | >| 7 | 2 | >| 8 | 5 | >| 9 | 1 | >| 10| 2 | >| 11| 4 | >| 12| 9 | >| 13| 9 | >| 14| 8 | >| 15| 6 | 
  • 0
    What do you mean "equation"? Do you mean "polynomial equation"?2012-10-16

1 Answers 1

3

OEIS finds: $ y = \left\lfloor \frac{2^x \bmod 100}{10} \right\rfloor $

  • 0
    Well thank you Gerry and Henning and sorry for not giving that information Henning. Also never heard of OEIS but it sure is helpful after checking it out.2012-10-12