A method for a financial self-service equipment to dispense banknotes, comprising: acquiring a total dispensing amount input into the self-service equipment by a user; acquiring denomination values of available banknotes in the self-service equipment; acquiring the number of available banknotes corresponding to each denomination value via a calculation section of the self-service equipment; determining via said calculation section a total available amount in the self-service equipment according to the denomination values and the number of the available banknotes; establishing a relation between the denomination values, the number of the available banknotes corresponding to each denomination value and the total dispensing amount that is represented by the following equation processed by the calculation section: ∑ i = 1 n A i X i = M, in the case where the total available amount is not less than the total dispensing amount and the greatest common divisor of the denomination values available in the self-service equipment can divide the total dispensing amount with no remainder, where A i is the denomination values, X i is an unknown number of banknotes to be output corresponding to A i, n is a total number of the denomination value types and is not less than 2, and M is the total dispensing amount; dividing both sides of the equation ∑ i = 1 n A i X i = M by the greatest common divisor of the n denomination values, gcd( A 1, A 2..., A n), in the case where gcd( A 1, A 2... A n) is not 1, to obtain a linear indeterminate equation with integer coefficients and n unknowns, ∑ i = 1 n a i X i = m, where a i is a quotient from dividing A i by gcd( A 1, A 2,... A n) and m is a quotient from dividing M by gcd( A 1, A 2...A n); calculating a general solution of the linear indeterminate equation with integer coefficients and n unknowns: ∑ i = 1 n a i X i = m as { X 1 = X 01 m − a 3 X 3 + ⋯ + a n X n + a 2 t X 2 = X 02 m − a 3 X 3 + ⋯ + a n X n − a 1 t, where t, x 3, x 4, ···, x n ∈ Z and gcd ( a 1, a 2) = 1; calculating a particular solution (X 01, X 02); calculating out a set of all t satisfying 0 ≤ X 1 ≤ S 1, 0 ≤ X 2 ≤ S 2...0 ≤ X n ≤ S n according to the general solution of ∑ i = 1 n a i X i = m and the particular solution of ∑ i = 1 n a i X i = m: X 01 X 02, where S 1, S 2... S n are the numbers of the available banknotes corresponding to the denomination values; determining the range of t in set A according to a preset banknote-dispensing principle corresponding to X 1, X 2... X n; and substituting t in the general solution above by an integral t to calculate out the values of X 1, X 2... X n, and outputting X 1, X 2... X n numbers of banknotes with the denomination values A 1, A 2... A n by the self-service equipment. acquiring a total dispensing amount input into the self-service equipment by a user; acquiring denomination values of available banknotes in the self-service equipment; acquiring the number of available banknotes corresponding to each denomination value via a calculation section of the self-service equipment; determining via said calculation section a total available amount in the self-service equipment according to the denomination values and the number of the available banknotes; establishing a relation between the denomination values, the number of the available banknotes corresponding to each denomination value and the total dispensing amount that is represented by the following equation processed by the calculation section: ∑ i = 1 n A i X i = M, in the case where the total available amount is not less than the total dispensing amount and the greatest common divisor of the denomination values available in the self-service equipment can divide the total dispensing amount with no remainder, where A i is the denomination values, X i is an unknown number of banknotes to be output corresponding to A i, n is a total number of the denomination value types and is not less than 2, and M is the total dispensing amount; dividing both sides of the equation ∑ i = 1 n A i X i = M by the greatest common divisor of the n denomination values, gcd( A 1, A 2..., A n), in the case where gcd( A 1, A 2... A n) is not 1, to obtain a linear indeterminate equation with integer coefficients and n unknowns, ∑ i = 1 n a i X i = m, where a i is a quotient from dividing A i by gcd( A 1, A 2,... A n) and m is a quotient from dividing M by gcd( A 1, A 2...A n); calculating a general solution of the linear indeterminate equation with integer coefficients and n unknowns: ∑ i = 1 n a i X i = m as { X 1 = X 01 m − a 3 X 3 + ⋯ + a n X n + a 2 t X 2 = X 02 m − a 3 X 3 + ⋯ + a n X n − a 1 t, where t, x 3, x 4, ···, x n ∈ Z and gcd ( a 1, a 2) = 1; calculating a particular solution (X 01, X 02); calculating out a set of all t satisfying 0 ≤ X 1 ≤ S 1, 0 ≤ X 2 ≤ S 2...0 ≤ X n ≤ S n according to the general solution of ∑ i = 1 n a i X i = m and the particular solution of ∑ i = 1 n a i X i = m: X 01 X 02, where S 1, S 2... S n are the numbers of the available banknotes corresponding to the denomination values; determining the range of t in set A according to a preset banknote-dispensing principle corresponding to X 1, X 2... X n; and substituting t in the general solution above by an integral t to calculate out the values of X 1, X 2... X n, and outputting X 1, X 2... X n numbers of banknotes with the denomination values A 1, A 2... A n by the self-service equipment.