Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

#1: Initial revision by user avatar DavidCary‭ · 2021-12-01T23:03:24Z (about 3 years ago)
2. **Naming**
 > "What's this phenomenon or behavior called?"

Sometimes we feeding one initial value into a function to get a first result, and then feeding that result into the same function to get a second result.

If the second result is always the same as the initial value,
no matter what the initial value is,
the behavior is called an ["involution"](https://en.wikipedia.org/wiki/involution_(mathematics)).

In cryptography, this behavior is called a ["reciprocal cipher"](https://en.wikipedia.org/wiki/Symmetric-key_algorithm#Reciprocal_cipher).

1. **Intuition**

 > "what's the intuition ...?"

       x columns

    o o o o o o o o o
    o o o o o o o o o  y rows
    ...
    o o o o o o o o o
    o o o o o o o o o
    

Say we have some total number of rocks C
and we line them up in rows and columns.

After we start placing C in x columns,
there's going to be some number y=C/x of rows of rocks.

If we take those same C rocks and start placing them in y columns,
there's going to be some number z=C/y of rocks per column.

It's relatively intuitive to me that we can rotate how we look at that rectangle without changing C, so we can see it as either dividing those C rocks into x columns, or dividing those C rocks into y columns,
so z must equal x.
(At least, it's clear to me when x and y are both integers; perhaps there's a more intuitive approach when x or y or both are not integers).