You must then use a loop (for or while) to find the sum of all the numbers in the geometric sequence of 3 less than N.
The geometric sequence of 3 looks like this
1, 3, 9, 27, 81, 243, ... where you start with the number one and multiply the previous number by 3 to get the next number.
add the sequences together to get answer
Isaiah_4
0
Newbie Poster
Recommended Answers
Jump to PostWhat have you done already?
All 4 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
Reverend Jim
4,780
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.