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.

## Problem 752

**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

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.

### Re: Problem 752

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

2757056 mod 5=1 and 1041920 mod 5=0