\(A=7^{18}+18.3-1=\left(7^{17}+17.3-1\right)+6.7^{17}+3\)
\(7^3\text{≡}1\left(mod9\right)\)
\(\Rightarrow\left(7^3\right)^5.7^2\text{≡}7^2\left(mod9\right)\)
\(7^{17}.6\text{≡}49.6\text{≡}6\left(mod9\right)\)
\(\Rightarrow6.7^{17}+3\text{≡}6+3\text{≡}0\left(mod9\right)\)
\(\Rightarrow A\)chia hết cho 9