07-Jan-2022 19:04:23 diophantine_4d_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test diophantine_4d(). diophantine_4d_nonnegative_test diophantine_4d_nonnegative returns the nonnegative solutions of a Diophantine equation in 4 variables. 2*x1+3*x2+5*x3+6*x4 = 24 31 solutions found. 1: 2*12+3*0+5*0+6*0 = 24 2: 2*9+3*2+5*0+6*0 = 24 3: 2*6+3*4+5*0+6*0 = 24 4: 2*3+3*6+5*0+6*0 = 24 5: 2*0+3*8+5*0+6*0 = 24 6: 2*8+3*1+5*1+6*0 = 24 7: 2*5+3*3+5*1+6*0 = 24 8: 2*2+3*5+5*1+6*0 = 24 9: 2*7+3*0+5*2+6*0 = 24 10: 2*4+3*2+5*2+6*0 = 24 11: 2*1+3*4+5*2+6*0 = 24 12: 2*3+3*1+5*3+6*0 = 24 13: 2*0+3*3+5*3+6*0 = 24 14: 2*2+3*0+5*4+6*0 = 24 15: 2*9+3*0+5*0+6*1 = 24 16: 2*6+3*2+5*0+6*1 = 24 17: 2*3+3*4+5*0+6*1 = 24 18: 2*0+3*6+5*0+6*1 = 24 19: 2*5+3*1+5*1+6*1 = 24 20: 2*2+3*3+5*1+6*1 = 24 21: 2*4+3*0+5*2+6*1 = 24 22: 2*1+3*2+5*2+6*1 = 24 23: 2*0+3*1+5*3+6*1 = 24 24: 2*6+3*0+5*0+6*2 = 24 25: 2*3+3*2+5*0+6*2 = 24 26: 2*0+3*4+5*0+6*2 = 24 27: 2*2+3*1+5*1+6*2 = 24 28: 2*1+3*0+5*2+6*2 = 24 29: 2*3+3*0+5*0+6*3 = 24 30: 2*0+3*2+5*0+6*3 = 24 31: 2*0+3*0+5*0+6*4 = 24 diophantine_4d_positive_test diophantine_4d_positive returns the positive solutions of a Diophantine equation in 4 variables. 2*x1+3*x2+5*x3+6*x4 = 24 4 solutions found. 1: 2*5+3*1+5*1+6*1 = 24 2: 2*2+3*3+5*1+6*1 = 24 3: 2*1+3*2+5*2+6*1 = 24 4: 2*2+3*1+5*1+6*2 = 24 diophantine_4d_test(): Normal end of execution. 07-Jan-2022 19:04:23