Let f ( n ) be defined as the number of ways a positive integer n can be expressed as a 2 − b 2 , where a and b are positive integers.
Let g ( n ) be defined as the smallest possible positive integer y such that f ( y ) = n .
If M is the least common multiple of g ( 1 ) , g ( 2 ) , g ( 3 ) , g ( 4 ) , and g ( 5 ) , then what is f ( M ) ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We can write a simple formula for f : f ( n ) = ⎩ ⎨ ⎧ ⌊ 2 1 σ 0 ( n ) ⌋ 0 ⌊ 2 1 σ 0 ( 4 1 n ) ⌋ n ≡ 1 , 3 mod 4 n ≡ 2 mod 4 n ≡ 0 mod 4 where σ 0 ( m ) is the number of divisors of m .
Log in to reply
Are you sure it's the floor function you want? For n=1, your formula yields 0, yet 1=1^2-0^2.
Log in to reply
Note that 0 is not a positive integer (it is, however, nonnegative).
Yes Same Way. I calculated all the g(n) using the concept of number of factors.
Problem Loading...
Note Loading...
Set Loading...
If a number can be expressed as a 2 − b 2 , then it can be factored as ( a + b ) ( a − b ) . Let a + b = m and a − b = n .
Then a = 2 m + n and b = 2 m − n . Therefore, in order for a number to be expressed as a 2 − b 2 , it must be factorable into two odd numbers or two even numbers.
For odd non-perfect squares, the number of ways to express as a 2 − b 2 is equal to the number of factor pairs. We can find the number of factor pairs by dividing the number of factors by 2 . For example, 6 3 's prime factorization is 3 2 × 7 1 . The number of factors of 6 3 is ( 2 + 1 ) ( 1 + 1 ) = 6 . The number of factor pairs will be 6 ÷ 2 = 3 . Therefore, it can be expressed as a 2 − b 2 in 3 different ways: 1 2 2 − 9 2 , 3 2 2 − 3 1 2 , and 8 2 − 1 2 .
For even non-perfect squares, the number of ways to express as a 2 − b 2 is equal to the number of even factor pairs. For example, 2 4 has prime factorization 2 3 × 3 1 . To find the number of even factor pairs, follow the process to find the number of factors except subtract 1 from 2 's exponent instead of adding 1 : ( 3 − 1 ) ( 1 + 1 ) = 4 . The number of even factor pairs will be: 4 ÷ 2 = 2 . Therefore, 2 4 can be expressed as a 2 − b 2 in 2 different ways: 7 2 − 5 2 and 5 2 − 1 2 .
For perfect squares, the process of finding factor pairs is similar, but you must not include the factor pair in which the two factors are equal.
The process of finding g ( n ) for any positive integer involves some trial and error. I used the smallest possible primes to find numbers that have as many factor pairs (or even factor pairs in the case of even numbers) as the n that I am trying to find g ( n ) for. This yielded:
g ( 1 ) = 3 1 = 3
g ( 2 ) = 3 1 × 5 1 = 1 5
g ( 3 ) = 3 2 × 5 1 = 4 5
g ( 4 ) = 2 5 × 3 1 = 9 6
g ( 5 ) = 2 6 × 3 1 = 1 9 2
The least common multiple of these numbers is M = 2 6 × 3 2 × 5 1 = 2 8 8 0 . The number of even factor pairs of this number is ( 6 − 1 ) ( 2 + 1 ) ( 1 + 1 ) ÷ 2 = 1 5 . Therefore f ( M ) = 1 5 .