I’m talking about this command: [Docstrings · Combinatorics.jl], Combinatorics version is 1.0.2, Julia version is 1.7.1
I want to see if the digits in a number (except one digit, called dig) add up to dig. My plan is to create all the permutations of the digits without dig and then add each digit together in each permutation so that is looks something like this (For the number 65231, and dig is 6):
First permutation - 5231, 5+2 is bigger than 6, so it continues to the next permutation
2nd - 2315, 2+3 = 5, 2+3+1 = 6 so it stops the for loop
My question is what format does the permutation command return the permutatations as (I can’t just print it because the command knows permutations get big or something). I’m guessing it’s something like this:
[[5, 2, 3, 1], [2, 3, 1, 5]...]
Thankyou for your time