I need help with solving these problems from Project Euler on freeCodeCamp.org

This is the first problem that I have trouble solving:

I even tried to see if the solution posted at freeCodeCamp Challenge Guide: Problem 128: Hexagonal tile differences would help me, but it ends up giving me an error

These are the other two problems that I have trouble solving:

If anyone knows how I can solve any of the problems that I have listed, that would be great.

Please open a separate topic for each question you want help with, using the Ask for Help button. Thanks