It's very sad that there is no matlab function "npermsk".
Not work for R is long, and k is small.
For example, R = 1:100, k = 2.
@li haitao, the max digital is 9. If length of R great than 10, it is another problem. I think you can submit a problem like this but larger R.
@ Binbin Qi, You're right.
The Goldbach Conjecture, Part 2
1302 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
275 Solvers
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
170 Solvers
5513 Solvers
Mersenne Primes vs. All Primes
172 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!