Ta có : 3a + 4b = 24
mà a,b \(\in\)N \(\Rightarrow\)3a \(\le\)24 \(\Rightarrow\)a = 8
Ta có : 3a + 4b = 24 \(\Rightarrow\)3a = 24 - 4b = 4 . 6 - 4 . b = 4 . ( 6 - b ) \(⋮\)4
Vì a \(⋮\)4 mà a \(\le\) 8 \(\Rightarrow\)a \(\in\){ 0; 4; 8 }
- Khi a = 4 \(\Rightarrow\)3 . 4 + 4 . b = 24 \(\Rightarrow\)4b = 24 - 12
\(\Rightarrow\)4b = 12
\(\Rightarrow\)b = 3
- Khi a = 0 \(\Rightarrow\)3 . 0 + 4 . b = 24 \(\Rightarrow\)4b = 24 \(\Rightarrow\)b = 6
- Khi a = 8 \(\Rightarrow\)3. 8 + 4 . b = 24 \(\Rightarrow\)4b = 24 - 24
\(\Rightarrow\)4b = 0 \(\Rightarrow\)b = 0
Vậy \(\hept{\begin{cases}a=4\\b=3\end{cases}}\); \(\hept{\begin{cases}a=0\\b=6\end{cases}}\); \(\hept{\begin{cases}a=8\\b=0\end{cases}}\)
P/s tham khảo nha.