Skip to main contentSkip to solution

For any positive integer nn, let f(n)=n(n+1)f(n)=n(n+1) if nn is even, and f(n)=n+3f(n)=n+3 if nn is odd. If mm is a positive integer such that 8f(m+1)−f(m)=28 f(m+1)-f(m)=2, then mm equals

Entered answer:

Solution

✅ Correct Answer: 10

We have a piecewise function f(n)f(n) that behaves differently based on whether nn is even or odd:

If nn is even: f(n)=n(n+1)f(n) = n(n+1)

If nn is odd: f(n)=n+3f(n) = n+3

We need to find the positive integer mm such that 8f(m+1)−f(m)=28f(m+1) - f(m) = 2.

Key Insight: Since we don't know if mm is even or odd we need to check both possibilities.


If mm is odd then m+1m+1 must be even.

f(m+1)=(m+1)(m+2)f(m+1) = (m+1)(m+2) because m+1m+1 is even

f(m)=m+3f(m) = m+3 because mm is odd

8f(m+1)−f(m)=28f(m+1) - f(m) = 2

8(m+1)(m+2)−(m+3)=28(m+1)(m+2) - (m+3) = 2

8(m+1)(m+2)=8(m2+3m+2)=8m2+24m+168(m+1)(m+2) = 8(m^2 + 3m + 2) = 8m^2 + 24m + 16

8m2+24m+16−m−3=28m^2 + 24m + 16 - m - 3 = 2

8m2+23m+13=28m^2 + 23m + 13 = 2

8m2+23m+11=08m^2 + 23m + 11 = 0

For a quadratic ax2+bx+c=0ax^2 + bx + c = 0 we can find integer solutions only if the discriminant b2−4acb^2 - 4ac is a perfect square.

Discriminant = (23)2−4(8)(11)=529−352=177(23)^2 - 4(8)(11) = 529 - 352 = 177

Since 177\sqrt{177} is not a whole number this case doesn't give us integer values for mm.


If mm is even then m+1m+1 must be odd.

f(m+1)=(m+1)+3=m+4f(m+1) = (m+1) + 3 = m + 4 because m+1m+1 is odd

f(m)=m(m+1)f(m) = m(m+1) because mm is even

8f(m+1)−f(m)=28f(m+1) - f(m) = 2

8(m+4)−m(m+1)=28(m + 4) - m(m+1) = 2

8m+32−m2−m=28m + 32 - m^2 - m = 2

7m+32−m2=27m + 32 - m^2 = 2

−m2+7m+30=0-m^2 + 7m + 30 = 0

m2−7m−30=0m^2 - 7m - 30 = 0

We need two numbers that multiply to −30-30 and add to −7-7.

Those numbers are −10-10 and 33.

(m−10)(m+3)=0(m - 10)(m + 3) = 0

Therefore: m=10m = 10 or m=−3m = -3

Since mm must be a positive integer we have m=10m = 10.


Therefore m=10m = 10

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question