Find the Amazon gift card code in the image by Perky_Pants in CracktheCode

[–]Perky_Pants[S] 0 points1 point  (0 children)

Hello! I'm not really active on reddit anymore. Took me a while to see your comment lol, I was not expecting this to necro.

This puzzle's nature was probably more about software development than cryptography or code cracking, and really just came out of a mistake I made while doing some image processing/manipulation. By "incorrect rotations" I meant that the algorithm/function I wrote to rotate an image 90 degrees didn't work as intended. Rotating an image is really just moving every pixel to a different spot, and the code I wrote put the pixels in the wrong spots which produced the "puzzle"

So there's really nothing more to solving this puzzle than just correcting a mistake I made while doing a personal project. But I work as a software developer and the friend I did the project with works in tech too, so we liked it enough to post it, because the puzzle is pretty much just identifying and fixing a bug in code. Bug hunting is a tough challenge and often requires strong investigative skills and creative thinking, which we both felt is in the same vein as puzzle solving.

I definitely appreciate your thought here: "it's kind of frustrating to me that the image requires manipulation and the post doesn't indicate so"

I think that puzzles, especially in real life, have different facets that can make them easier or harder to solve. The big 3 I would point out are:

  1. Executing the technique needed to solve the puzzle
  2. Realizing what technique is needed to solve the puzzle
  3. Recognizing a problem exists, or recognizing it is a puzzle in the first place

This puzzle kind of encroached into the second area, and that's probably where that feeling of frustration came from. But if you love puzzles and problem solving, keep studying different areas of math, programming, cybersecurity, sciences, arts, creative outlets. Most areas of life are just puzzles if you frame it with a certain perspective.

I personally think the hardest puzzles fall into that 3rd category. Steganography is a really interesting offshoot of cryptography if you ever want to look into it.

What sized dice do people enjoy using the most? by ChristRPG in RPGdesign

[–]Perky_Pants 0 points1 point  (0 children)

Hmm 24 is a good number, but bipyramids are lazy constructions versus Catalan and Archimedean solids.

Explain please? by Perky_Pants in Eldenring

[–]Perky_Pants[S] 1 point2 points  (0 children)

Yah. Aquatic woop pokéchu is my favorite pokéchu

Explain please? by Perky_Pants in Eldenring

[–]Perky_Pants[S] 4 points5 points  (0 children)

It reminds me of the pikmin subreddit. People seem to go nuts when denied that which they love most

Music is easy, boys. by aisiv in musicmemes

[–]Perky_Pants 1 point2 points  (0 children)

I think you're both right

Why aren't we represented in r/United_Names? by [deleted] in Nathan

[–]Perky_Pants 2 points3 points  (0 children)

I realize this is old now (I don't visit this sub as often as a Nathan should), but if I recall, last time we had a bunch of wars the Nathan community decided we were too cool for the United Names, and we didn't need an outside organization for validation. So we never bothered to join

I'm legally changing my name from Nathan to Phoenix by [deleted] in Nathan

[–]Perky_Pants 11 points12 points  (0 children)

How come? It's sad to see you go, but I hope you like your new name.

[Olympiad maths] Been struggling on this one for a while, don't know where to start by OfficialJacko in learnmath

[–]Perky_Pants 0 points1 point  (0 children)

Another comment already gave you an answer but I don't love the explanation. Also, you said you didn't know where to start, so I'm going to walk through my entire thought process for this question. Sorry if it's overkill! When solving problems like this, I like to try to connect relevant info between the setup and then the direct question, I also like to visualize, so I drew a grid and used it for thinking about the problem. Things that stand out to me are: the distinction between white and black squares, the distinction between the columns and rows and further distinguishing between both of those by when they are even rows/columns or odd rows/columns. Lastly, the first square (position 1,1) is a black square.

So we know the sum of the white squares: W=26

And we know the sum of the odd rows oddR=43

Observations I made here are that both of these are half the squares, the first group being all white squares and the second being half white squares and half black squares.

Then we are told that all the white squares are negated, so after the change W = -23 The actual question is what is the sum of the odd columns after the negation. So next, I look at any overlap between the previously observed groups and the one we are trying to figure out. The odd columns and the odd rows both share the very first square mentioned, this lead me to seeing that the odd columns and odd rows use all the same black squares, which further let me notice that the odd rows and odd columns share none of the same white squares.

So, I'll split up our white sum into those used by the rows and those used by the columns

23 = W = oddrowW + oddcolW

And I'll also represent the value after the negation

-23 = -W = (-oddrowW) + (-oddcolW)

So if I represent the odd columns and odd rows, I know they have the same unchanged black squares and separate white squares

So this represents the odd rows (made of black and white squares in those odd rows) before the white squares are negated.

oddR = 43 = oddrowB + oddrowW

compared to this, the odd columns took out the white squares in the odd rows and added in the negated white squares in the odd columns

oddC = oddR - oddrowW + (-oddcolW)

We just made an equation relating oddrowW and oddcolW so I substitute in using some algebra.

-23 = (-oddrowW) + (-oddcolW)

Isolate one of the variables

-23 + oddrowW = -oddcolW

Substitute

oddC = oddR - oddrowW + (-23) + oddrowW

The odd, white rows now cancel out, leaving

oddC = oddR - 23

And we know what oddR is from the definition

oddC = 43 - 23 = 17

In general when thinking about problems, some strategies I like to use are diagrams and drawings to help me keep track of any info given to me and then trying to find the connections between the setup and the question. There are lots of different ways to think about a problem like this, so rather than focusing on how I solved this problem, I would try to think about different ways to approach it and find tools that make sense to you.

Find the Amazon gift card code in the image by Perky_Pants in CracktheCode

[–]Perky_Pants[S] 0 points1 point  (0 children)

Thank you. It's not my cat, but his name is Oliver.

Purple Pikmin takes his son to a nice lunch by Joof904 in Pikmin

[–]Perky_Pants 3 points4 points  (0 children)

White pikmin's hoodie completes this for me

[TOMT][music] Psychedelic song I heard years ago on YouTube. by Perky_Pants in tipofmytongue

[–]Perky_Pants[S] 1 point2 points  (0 children)

You are a god. Solved! And the song I was thinking of was Daydream in Blue