The general solution to the difference equation \t\t\txn+1=axnxn−1xn−2+bxn−1xn−2+cxn−2+dxnxn−1xn−2,n∈N0,\\documentclass[12pt]{minimal}\t\t\t\t\\usepackage{amsmath}\t\t\t\t\\usepackage{wasysym}\t\t\t\t\\usepackage{amsfonts}\t\t\t\t\\usepackage{amssymb}\t\t\t\t\\usepackage{amsbsy}\t\t\t\t\\usepackage{mathrsfs}\t\t\t\t\\usepackage{upgreek}\t\t\t\t\\setlength{\\oddsidemargin}{-69pt}\t\t\t\t\\begin{document}$$x_{n+1}=\\frac {ax_{n}x_{n-1}x_{n-2}+bx_{n-1}x_{n-2}+cx_{n-2}+d}{x_{n}x_{n-1}x_{n-2}},\\quad n\\in\\mathbb{N}_{0}, $$\\end{document} where a, b, cinmathbb{C}, dinmathbb{C}setminus{0}, is presented by using the coefficients, the initial values x_{-j}, j=overline{0,2}, and the solution to the difference equation \t\t\tyn+1=ayn+byn−1+cyn−2+dyn−3,n∈N0,\\documentclass[12pt]{minimal}\t\t\t\t\\usepackage{amsmath}\t\t\t\t\\usepackage{wasysym}\t\t\t\t\\usepackage{amsfonts}\t\t\t\t\\usepackage{amssymb}\t\t\t\t\\usepackage{amsbsy}\t\t\t\t\\usepackage{mathrsfs}\t\t\t\t\\usepackage{upgreek}\t\t\t\t\\setlength{\\oddsidemargin}{-69pt}\t\t\t\t\\begin{document}$$y_{n+1}=ay_{n}+by_{n-1}+cy_{n-2}+dy_{n-3}, \\quad n\\in\\mathbb{N}_{0}, $$\\end{document} satisfying the initial conditions y_{-3}=y_{-2}=y_{-1}=0, y_{0}=1. The representation complements known ones of the general solutions to the corresponding difference equations of the first and second order. Besides, the general representation formula is investigated in detail and refined by using the roots of the characteristic polynomial \t\t\tP4(λ)=λ4−aλ3−bλ2−cλ−d\\documentclass[12pt]{minimal}\t\t\t\t\\usepackage{amsmath}\t\t\t\t\\usepackage{wasysym}\t\t\t\t\\usepackage{amsfonts}\t\t\t\t\\usepackage{amssymb}\t\t\t\t\\usepackage{amsbsy}\t\t\t\t\\usepackage{mathrsfs}\t\t\t\t\\usepackage{upgreek}\t\t\t\t\\setlength{\\oddsidemargin}{-69pt}\t\t\t\t\\begin{document}$$P_{4}(\\lambda )=\\lambda ^{4}-a\\lambda ^{3}-b\\lambda ^{2}-c\\lambda -d $$\\end{document} of the linear equation. The following cases are considered separately: (1) all the roots of the polynomial are distinct; (2) there is a unique double root of the polynomial; (3) there is a triple root of the polynomial and one simple; (4) there is a quadruple root of the polynomial; (5) there are two distinct double roots of the polynomial.