Problem 752

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
smallwind
Posts: 2
Joined: Sun Jul 04, 2021 12:15 pm

Problem 752

Post by smallwind »

i don't understand what lowercase g function does, i don't think.
it says g(5)=12 but (1+sqrt(7))^12 expands to something that cannot have a 1 modulo any number.
see wolfram alpha screenshot below:
https://ibb.co/Q9Spv3k

thanks for explaining in advance.
User avatar
hk
Administrator
Posts: 11399
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: Problem 752

Post by hk »

You can verify that (1+sqrt(7))^12=2757056+1041920*sqrt(7) (see also your screenshot of Wolfram)
2757056 mod 5=1 and 1041920 mod 5=0
Image
smallwind
Posts: 2
Joined: Sun Jul 04, 2021 12:15 pm

Re: Problem 752

Post by smallwind »

oh right...my bad.
Post Reply