Chronology Current Month Current Thread Current Date
[Year List] [Month List (current year)] [Date Index] [Thread Index] [Thread Prev] [Thread Next] [Date Prev] [Date Next]

Re: [Phys-L] From a Math Prof (physics BS major) at my institution ( math challenge)



Here are the results with the new code:

octave-3.2.4.exe:13> getdist2(1000000)
totalrounds =

46 436 2662 9580 25606 52869 87332

totalseq2 =

2 17 143 787 2708 7775 18031

total =

0 0 1 9 161 1120 5359

Elapsed time is 14113 seconds.
-----------------
Key:
Each result is 21 sets of 5 unique numbers between 1 and 35 inclusive.
totalrounds(1) = number of results with zero round numbers (10,20,30)
totalrounds(2) = number of results with one round number.
totalrounds(i) = number of results with i-1 round numbers.

totalseq2(1) = number of results with zero sequences of two numbers in a row.
totalseq2(2) = number of results with one sequence of two numbers in a row.
totalseq2(i) = number of results with i-1 sequences of two numbers in a row.

total(1) = number of results with zero round numbers and zero sequences of two numbers in a row.
total(2) = number of results with one OR FEWER round numbers and one OR FEWER sequences of two numbers in a row.
total(i) = number of results with i-1 OR FEWER round numbers and i-1 OR FEWER sequences of two numbers in a row.
------------------------