Talk:Average loop length: Difference between revisions

Line 13:
:I doubt this is the correct formula as it does not give the same numerical result as the Perl6 code. It's also very different as it does not have any factorial in it. I must have missed something.
:--[[User:Grondilu|Grondilu]] 17:27, 4 January 2013 (UTC)
 
:O yeah I understood my mistake. <math>P_k = \frac{N!}{(N-k)!N^k}</math> because you don't only want to avoid repeating the first term before the k-th, you also want to avoid all preceding ones.
:--[[User:Grondilu|Grondilu]] 18:50, 4 January 2013 (UTC)
1,934

edits