28-Jul-2021 00:32:59 diophantine_nd_test(): MATLAB/Octave version 9.9.0.1467703 (R2020b) Test diophantine_nd(). diophantine_nd_nonnegative_test MATLAB/Octave version 9.9.0.1467703 (R2020b) diophantine_nd_nonnegative returns nonnegative solutions of a Diophantine equation in N variables. 2*x1+3*x2 = 18 4 solutions found. 1: 2*0+3*6 = 18 2: 2*3+3*4 = 18 3: 2*6+3*2 = 18 4: 2*9+3*0 = 18 6*x1+3*x2+13*x3 = 16 1 solutions found. 1: 6*0+3*1+13*1 = 16 12*x1+9*x2+7*x3 = 60 4 solutions found. 1: 12*0+9*2+7*6 = 60 2: 12*1+9*3+7*3 = 60 3: 12*2+9*4+7*0 = 60 4: 12*5+9*0+7*0 = 60 2*x1+3*x2+5*x3+6*x4 = 24 31 solutions found. 1: 2*0+3*0+5*0+6*4 = 24 2: 2*0+3*1+5*3+6*1 = 24 3: 2*0+3*2+5*0+6*3 = 24 4: 2*0+3*3+5*3+6*0 = 24 5: 2*0+3*4+5*0+6*2 = 24 6: 2*0+3*6+5*0+6*1 = 24 7: 2*0+3*8+5*0+6*0 = 24 8: 2*1+3*0+5*2+6*2 = 24 9: 2*1+3*2+5*2+6*1 = 24 10: 2*1+3*4+5*2+6*0 = 24 11: 2*2+3*0+5*4+6*0 = 24 12: 2*2+3*1+5*1+6*2 = 24 13: 2*2+3*3+5*1+6*1 = 24 14: 2*2+3*5+5*1+6*0 = 24 15: 2*3+3*0+5*0+6*3 = 24 16: 2*3+3*1+5*3+6*0 = 24 17: 2*3+3*2+5*0+6*2 = 24 18: 2*3+3*4+5*0+6*1 = 24 19: 2*3+3*6+5*0+6*0 = 24 20: 2*4+3*0+5*2+6*1 = 24 21: 2*4+3*2+5*2+6*0 = 24 22: 2*5+3*1+5*1+6*1 = 24 23: 2*5+3*3+5*1+6*0 = 24 24: 2*6+3*0+5*0+6*2 = 24 25: 2*6+3*2+5*0+6*1 = 24 26: 2*6+3*4+5*0+6*0 = 24 27: 2*7+3*0+5*2+6*0 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= 35 110: 2*6+3*1+5*4+6*0+7*0 = 35 111: 2*6+3*2+5*1+6*2+7*0 = 35 112: 2*6+3*2+5*2+6*0+7*1 = 35 113: 2*6+3*3+5*0+6*0+7*2 = 35 114: 2*6+3*4+5*1+6*1+7*0 = 35 115: 2*6+3*6+5*1+6*0+7*0 = 35 116: 2*7+3*0+5*0+6*0+7*3 = 35 117: 2*7+3*0+5*3+6*1+7*0 = 35 118: 2*7+3*1+5*0+6*3+7*0 = 35 119: 2*7+3*1+5*1+6*1+7*1 = 35 120: 2*7+3*2+5*3+6*0+7*0 = 35 121: 2*7+3*3+5*0+6*2+7*0 = 35 122: 2*7+3*3+5*1+6*0+7*1 = 35 123: 2*7+3*5+5*0+6*1+7*0 = 35 124: 2*7+3*7+5*0+6*0+7*0 = 35 125: 2*8+3*0+5*0+6*2+7*1 = 35 126: 2*8+3*0+5*1+6*0+7*2 = 35 127: 2*8+3*1+5*2+6*1+7*0 = 35 128: 2*8+3*2+5*0+6*1+7*1 = 35 129: 2*8+3*3+5*2+6*0+7*0 = 35 130: 2*8+3*4+5*0+6*0+7*1 = 35 131: 2*9+3*0+5*1+6*2+7*0 = 35 132: 2*9+3*0+5*2+6*0+7*1 = 35 133: 2*9+3*1+5*0+6*0+7*2 = 35 134: 2*9+3*2+5*1+6*1+7*0 = 35 135: 2*9+3*4+5*1+6*0+7*0 = 35 136: 2*10+3*0+5*3+6*0+7*0 = 35 137: 2*10+3*1+5*0+6*2+7*0 = 35 138: 2*10+3*1+5*1+6*0+7*1 = 35 139: 2*10+3*3+5*0+6*1+7*0 = 35 140: 2*10+3*5+5*0+6*0+7*0 = 35 141: 2*11+3*0+5*0+6*1+7*1 = 35 142: 2*11+3*1+5*2+6*0+7*0 = 35 143: 2*11+3*2+5*0+6*0+7*1 = 35 144: 2*12+3*0+5*1+6*1+7*0 = 35 145: 2*12+3*2+5*1+6*0+7*0 = 35 146: 2*13+3*1+5*0+6*1+7*0 = 35 147: 2*13+3*3+5*0+6*0+7*0 = 35 148: 2*14+3*0+5*0+6*0+7*1 = 35 149: 2*15+3*0+5*1+6*0+7*0 = 35 150: 2*16+3*1+5*0+6*0+7*0 = 35