\(=n\left(2n^2-2n-n+1\right)\)
\(=n\left(n-1\right)\left(2n-1\right)\)
TH1: n=3k
\(A=3k\left(3k-1\right)\left(6k-1\right)⋮3\)
mà A luôn chia hết cho 2(do n;n-1 là hai số liên tiếp)
nên A chia hết cho 6
TH2: n=3k+1
\(A=\left(3k+1\right)\left(3k+1-1\right)\left(6k+2-1\right)\)
\(=\left(3k+1\right)\left(3k\right)\cdot\left(6k+1\right)⋮3\)
=>A chia hết cho 6
TH3: n=3k+2
\(A=\left(3k+2\right)\left(3k+1\right)\left(6k+4-1\right)\)
\(=\left(3k+2\right)\left(3k+1\right)\left(6k+3\right)⋮6\)