in reply to Re: Odometer pattern iterator (in C). (Updated.)
in thread Odometer pattern iterator (in C). (Updated.)

I think that count is wrong. I compute 184756 for 20/10.

  • Comment on Re^2: Odometer pattern iterator (in C). (Updated.)

Replies are listed 'Best First'.
Re^3: Odometer pattern iterator (in C). (Updated.)
by Laurent_R (Canon) on Jun 01, 2015 at 08:07 UTC
    Yes, right, I made a mistake when removing the printing out of the solutions and just counting the solutions. The result is now:
    $ time perl N_among_M.pl 184756 real 0m0.560s user 0m0.545s sys 0m0.015s