GLAT # 17.

While I do lack 7/3 of a life, I have enough of a life to know that trying to find a formula to solve this one is not worth it (although, In my combinatorial studies next year I will… [<–written next year]), so I just used another brute force program….

Consider a function for which f(n) returns the number of ones required to count from 1 to n. f(13)=6, notice that f(1)=1. Find the Next largest number that satisfies f(n)=n.

The program is comprised of a loop that iterates until it finds something, then it exits.

199981
Query took 7.47828507423 seconds.

The php source can be found here.

3 Responses to “GLAT # 17.”

  1. kingmike Says:

    hey well that is interesting, very. f(199981) =199981? is that what that means

    Greg: Correct.

  2. Josh Groleau (9th grader nobody cares about) Says:

    i’m in school….i can’t find starbucks on firefox…you liar

  3. Greggy Says:

    Yeah, well I can find it in firefox…same version as you.

Leave a Reply