Problem 548

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
Forum rules
As your posts will be visible to the general public you
are requested to be thoughtful in not posting anything
that might explicitly give away how to solve a particular problem.

This forum is NOT meant to discuss solution methods for a problem.

In particular don't post any code fragments or results.

Don't start begging others to give partial answers to problems

Don't ask for hints how to solve a problem

Don't start a new topic for a problem if there already exists one


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
Post Reply
wrongrook
Posts: 396
Joined: Sat Oct 17, 2009 10:39 pm

Problem 548

Post by wrongrook »

Can you also give the value for g(1)?

I am not sure from the problem statement whether g(1) should be 0 or 1?

User avatar
mpiotte
Administrator
Posts: 1914
Joined: Tue May 08, 2012 5:40 pm
Location: Montréal, Canada

Re: Problem 548

Post by mpiotte »

wrongrook wrote:Can you also give the value for g(1)?

I am not sure from the problem statement whether g(1) should be 0 or 1?
g(1) = 1
Image

User avatar
sjhillier
Administrator
Posts: 553
Joined: Sun Aug 17, 2014 4:59 pm
Location: Birmingham, UK
Contact:

Re: Problem 548

Post by sjhillier »

Is it worth a clarification in the problem statement?

User avatar
hk
Administrator
Posts: 10875
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 548

Post by hk »

In my opinion not.
If one has chosen g(1)=0 and gets "wrong answer" it's very little trouble to enter answer+1, isn't it?
Works actually faster than coming here and ask this question.
Image

vamsikal3
Posts: 113
Joined: Sat Oct 01, 2016 9:25 am

Re: Problem 548

Post by vamsikal3 »

This problem for some reason does not have sample results, so can someone verify for n <= 10 ^ 8, the sum of g(n) == n is 3?8?1?7?5.

EDIT: Solved the problem. The above number is not correct.

Thanks,
vamsikal3
Last edited by vamsikal3 on Sun Jun 11, 2017 3:39 pm, edited 1 time in total.
my friend key --> 990813_OZPwQtCjkD6KlvxirOoTSZxccMFsuw1L
Image

MuthuVeerappanR
Posts: 468
Joined: Sun Mar 22, 2015 2:30 pm
Location: India
Contact:

Re: Problem 548

Post by MuthuVeerappanR »

For the digits shown, I get the first and fourth digits different... But anywys, I get an eight digit answer but your answer has nine digits..
Image
It is not knowledge, but the act of learning, not possession but the act of getting there, which grants the greatest enjoyment.

Post Reply