# Greatest Common Divisor Proof

## Homework Statement

Suppose a, b ∈ N and a|b. Prove that a = gcd(a, b).

## Homework Equations

Seems easy intuitively but actually proving it is giving me problems.

## The Attempt at a Solution

I have been trying to use the fact that gcd(a,b)=na + mb here m and n are integeres but got stuck.

Well we clearly have a|a and a|b, and the largest divisor of a number is itself. This should follow immediately.

Yeah and i understand that but we are asked to prove it, not explain why.

Well you can probably prove by contradiction that the largest divisor of a number is itself. I mean a|b => a=gcd(a,b) is so trivial that there's very little to say, how formal does your professor expect your proof to be? You can take it all the way down to pure logic if you really wanted to.

The difference between a proof and an explanation actually becomes increasingly fuzzy the farther you get in math.

A proof of this is certainly possible.

But first, we would have to know how exactly you defined a|b and gcd(a,b).