Quotient Remainder
Suppose that a , b Z , but that b 0 , then there exists unique integers q , r such that a = b q + r where 0 r < | b |

Let a , b Z and assume b 0 . Define S = { x Z : x 0  and  x = a + | b | k  where  k Z } N 0 , we'll show that S is non-empty. We can think of S as taking a and then either adding muliples of | b | or subtracting them to a , each time leaving some remainder, thinking ahead we can guess that the smallest value of this set should be the smallest remainder and possibly the r we are looking for.

If a 0 then when k = 0 we have a + | b | k = a 0 thus a S , on the other hand if a < 0 , then observe that since 0 r < | b | , then 1 | b | 0 | b | 1 and also a > 0 , then we have 0 ( | b | 1 ) ( a ) . But also we can see that ( | b | 1 ) ( a ) = | b | ( a ) + a so it's of the form of an element in S and since it's non-negative, it must be an element of S . Therefore this paragraph shows us that S has at least one element, no matter the value of a .

Due to this and since S N 0 , then by the well ordering principle there is some smallest element s S , we know that this value satisfies s = a | b | k . Now we will show that 0 s < | b | .

s S so therefore s 0 , if we were to assume that s | b | then s | b | 0 . By recalling the equality that s satisifies we can write s | b | = ( a | b | k ) | b | = a | b | ( k + 1 ) , therefore s | b | S but since | b | > 1 then s | b | < s which is a contradiction because we assumed that s was the smallest element in S , thus we must have that s < ; | b |

At this point we have a = | b | k + s where 0 s < | b | so take q = sgn ( b ) k and r = s . If b 0 , then | b | = b and sgn ( b ) = 1 , so we obtain a = b k + s , if b < ; 0 , then | b | = b and sgn ( b ) = 1 so again we have a = ( b ) ( 1 ) k + s . We'll finish the proof by showing that these values are unique.

Assume we have another pair q ¯ , r ¯ satisfying a = b q ¯ + r ¯ with 0 r ¯ | b | but q ¯ q and r ¯ r , therefore we have b q + r = b q ¯ + r ¯ r ¯ r = b ( q ¯ q ) .

Without loss of generality assume r ¯ > r , then r ¯ r > 0 and since 0 r < | b | then 0 r ¯ r r ¯ < | b | , recalling that r ¯ r = | b | ( q ¯ q ) , we can re-write our last inequality as 0 | b | ( q ¯ q ) < | b | and since b 0 we can divide by | b | to get 0 < q ¯ q < 1 but since q , q ¯ Z this force q = q ¯ , which then shows r = r ¯ by previous equalities, therefore assuming we have another solution, it turns out it must be our original one, and thus our solution is unique.

Note that the requirement that b be non-zero is important, because if it were zero we'd be asking "how many times do you have to multiply 0 and add r to get a " which in itself doesn't intuitively make sense, formally since we require 0 r < | b | then if b = 0 no such r could ever exist.

Remainder Function
Given two integers a , b Z such that b 0 , then we get some q , r Z with 0 r < | b | such that a = b q + r and we define a   %   b := r
Quotient Function
Given two integers a , b Z such that b 0 , then we get some q , r Z with 0 r < | b | such that a = b q + r and we define a   / /   b := q
Quotient Remainder using Quotient and Remainder Function
For any a , b Z such that b 0 then a = b ( a / / b ) + a   %   b
Specific Value of the Divisor Function
We note that a   / /   b = b a
Specific Value of the Remainder Function
We note that a   %   b = b b a a
Quotient Remainder on Positive Integer has Positive Divisor
Suppose that a , b N 1 such that a b then a / / b 1

For brevity define q = a / / b , we know that a = b q + r with 0 r < b , thus far we know that q Z , though if q < ; 0 , then we know that b q < ; r q 0 , therefore a = b q + r < ; r q + r = r ( q + 1 )

For a contradiction assume that q < 1 q 0 , therefore r ( q + 1 ) r ( 0 + 1 ) = r , which shows that a < r , since 0 r < b , then we have a < b which is a contradiction because we know that a b .

Since by assuming q < 1 , we have a contradiction, so therefore q 1 , which is the same as a / / b 1 .

Divides iff Zero Remainder
For any a , b Z a b a   %   b = 0
Note that a b iff b = k a = k a + 0 iff a   / /   b = k and a   %   b = 0 . The last iff comes from the fact that there are unique integers that satisfy the equation laid out by the quotient remainder theorem.
Every integer is either Odd or Even
For any z Z , it is even or it is odd
Let z Z and then we know that z   %   2 { 0 , 1 } , if z   %   2 = 1 then there is some q Z such that z = q 2 + 1 , and thus odd, if z   %   2 = 0 , then we have some q Z such that z = q 2 + 0 and is thus even
Exactly one of any two Consecutive Numbers is Even
For any n Z exactly one of n , n + 1 is even (and the other odd)
If n is even, we are done, if n is odd, then there is a k Z such that n = 2 k + 1 therefore n + 1 = 2 ( k + 1 ) which is even as needed.
When the Remainder Function does Nothing
Suppose that m N 1 and that a [ 0 , , m 1 ] then a   %   m = a
Repeated Application of the Remainder Function does Nothing
Suppose that a , m Z such that m 0 then a   %   m = ( a   %   m )   %   m
Quotient Remainder and Addition
Suppose that a , b , m Z then ( a + b )   %   m = ( ( a   %   m ) + ( b   %   m ) )   %   m and ( a + b ) / / m = a / / m + b / / m + ( a   %   m + a   %   b ) / / m
We know a = m ( a / / m ) + a   %   m  and  b = m ( b / / m ) + b   %   m therefore a + b = m ( ( a / / m ) + b / / m ) + ( a   %   m + b   %   m ) Let x = ( a   %   m + b   %   m ) , and so by the quotient remainder theorem we get some q x , r x such that x = m q x + r x so that a + b = m ( ( a / / m ) + ( b / / m ) + q x ) + r x therefore ( a + b )   %   m = r x and ( a + b ) / / m = ( a / / m ) + ( b / / m ) + q x . Finally note that r x = ( a   %   m + b   %   m )   %   m and q x = ( a   %   m + b   %   m ) / / m as needed.
If a Number Divides a Sum and Already Divides one of the Summands it Must Divide the Other
Suppose that d a + b and d a then d b
We know that ( a + b )   %   d = 0 and that a   %   d = 0 since 0 = ( a + b )   %   d = ( a   %   b + b   %   d )   %   d = ( 0 + b   %   d )   %   d = b   %   d therefore d b
Adding Multiples of the Divisor Never changes the Remainder
Let m Z 0 and a , k Z then a   %   m = ( a + k m )   %   m
n Factorial Plus or Minus One Restricts Factors
Suppose n N 1 then for every m [ 2 , , n ] m n ! ± 1
Recall that m n ! therefore n !   %   m = 0 . But then ( n ! ± 1 )   %   m = ( n !   %   m ± 1   %   m )   %   m = ( ± 1   %   m )   %   m = ± 1   %   m Note that in going from the second to the third line we used this fact.

if ± = + then we have ( n ! + 1 )   %   m = 1 otherwise we have ( n ! + 1 )   %   m = 1   %   m = m 1 and since m 1 then m 1 0 therefore in both cases we see that ( n ! + 1 )   %   m 0 therefore m ( n ! + 1 ) as needed.

Every Perfect Square has Remainder Zero or One Upon Division by Four
For any n Z we have n 2   %   4 { 0 , 1 }
We know that n is either odd or even and therefore in the case that n = 2 k then n 2 = 4 k 2 = 2 ( 2 k 2 ) + 0 so n 2   %   4 = 0 , on the other hand if n = 2 k + 1 then n 2 = 4 k 2 + 4 k + 1 = 2 ( 2 k 2 + 2 k ) + 1 therefore n 2   %   4 = 1 as needed.

Note that we also see that every odd perfect square has remainder 1 mod 8 as an intermediate stage in the above proof.

Every Odd Perfect Square has Remainder 1 mod 8
As per title.
Suppose that n 2 = 2 k + 1 it's impossible for n to be even, because then n 2 would be, since every number is either even or odd, then n must have been even, therefore there is a j Z such that n = 2 j + 1 therefore n 2 = 4 j 2 + 4 j + 1 = 4 ( j ( j + 1 ) ) + 1 . Recall that at least one of j , j + 1 is even , therfore j ( j + 1 ) is even and therefore 4 ( j ( j + 1 ) ) is divisible by 8 in other words we have some m Z such that n 2 = 8 m + 1 as needed.
composite number
A number n N 1 is said to be composite, when it has a positive divisor other than 1 and itself
b ) .--> x ( a b ) 1 -->
multiplicative function
an arithmetic function is said to be multiplicative when
f ( m ) f ( n ) = f ( m n )
for all coprime positive integers m , n
Suppose that d ( n ) is the number of divisors of n , then d is a multiplicative function.

Let m , n Z + and assume that gcd ( m , n ) = 1 , we'd like to prove that d ( m ) d ( n ) = d ( m n )

Suppose that the divisors of m are P = { p 1 , , p j } and the divisors of n are Q = { q 1 , , q k }

Claim that the set P Q = { p x q y : x [ j ] , y [ k ] } is exactly equal to the divisors of m n