BREAKING: Target Test Prep releases Brand New 2026 On Demand GMAT prep course

Redeem

Target Test Prep · GMAT

Choose how you want to prepare

Learn live with an expert or move at your own pace. Every option includes the complete TTP study system.

★★★★★5.0559 reviews
GMATLiveTeach 7 seats left
Chris Peckover
NEXT LIVE COHORT

Oct 13 to Jan 7, 2027

with Chris Peckover

Schedule
Tue, Thu · 8:00 to 10:00 PM ET
Included
40 live hours + 6 months of GMAT OnDemand
  • Live instruction and real-time questions
  • Class recordings and assigned practice
View class & enroll
Limited cohort · enrollment openTarget Test Prep
EALiveTeach 5 seats left
Logan Thompson
EXECUTIVE ASSESSMENT

Sep 6 to Dec 6, 2026

with Logan Thompson

Schedule
Sun · 9:30 AM to 12:30 PM ET
Included
Live EA class + 6 months of EA OnDemand
  • Expert-led weekly online sessions
  • EA Masterclass access between classes
View EA class & enroll
Limited cohort · enrollment openTarget Test Prep
GMATOnDemand Start anytime
SELF-PACED MASTERCLASS

Target Test Prep GMAT OnDemand

Complete access from day one. Study on your schedule.

130-point score guarantee
$0to start then $127/mo
  • Personalized study plan and analytics
  • Thousands of lessons and practice questions

Compare the format, schedule, and included access before enrolling. Prices and seat counts shown reflect the supplied offer details.

For a positive integer n, f(n) and g(n) are defined as follows

Expert replies
by Max@Math Revolution » Mon Mar 30, 2020 12:18 am

Timer

00:00

Answers

A

B

C

D

E

Stats

Difficulty

[GMAT math practice question]

For a positive integer n, f(n) and g(n) are defined as follows

f(n)={0 , (n is a multiple of 5) 1 , (n is not a multiple of 5)
g(n)={0 , (n is a multiple of 7) 1 , (n is not a multiple of 7)

Moreover, h(n) is defined as (1 - f(n))(1 - g(n)).
What is the value of h(3) + h(6) + h(9) + … + h(2004) + h(2007)?

A. 13
B. 19
C. 38
D. 57
E. 152
Join the discussion
Source: — Problem Solving |

=>

h(n) = 0 when f(n)=1 or g(n) = 1
h(n) = 1 when f(n)=0 and g(n)=0
Thus, we have h(n) = 1 when n is a multiple of both 5 and 7. It means we have h(n) = 1 when n is a multiple of 35.

3, 6, 9, … , 2016, 2019 are multiples of 3.
The function values of h for those numbers is 1 when they are multiples of 105 = 35*3.
2019 = 105*19 + 24
Thus, we have 19 multiples of 105 between 1 and 2007, inclusive.

Therefore, B is the answer.
Answer: B
Join the discussion