The surprising mathematical elegance of the number 135
Why is this Mathematics meme funny?
Level 1: Number Magic Trick
Imagine you have the number 135, which is like a special toy with secrets. This meme is saying there are two different tricks you can do with the digits 1, 3, and 5, and both tricks end up with the same answer, 135 – like magic!
First trick: take the 1, the 3, and the 5 and do a funny power routine with them. It’s like saying: “Let’s use 1 just once, 3 squared (which means 3 * 3), and 5 cubed (5 * 5 * 5)”, and then add those all together. If you do that, you surprisingly get exactly 135 back. It’s as if each digit grew into a bunch of sticks (the power makes a number repeat multiplication) – 1 stays 1, 3 turns into 9, and 5 turns into 125 – and when you pile all those sticks together, you build the original number 135 again.
Second trick: use simple adding and multiplying with 1, 3, and 5. First add them: 1 + 3 + 5 = 9. Then multiply them: 1 * 3 * 5 = 15. Now for the finale, take those two results (9 and 15) and multiply them together: 9 * 15. Ta-da! It also makes 135. It’s like having two recipes for the same cake – one recipe mixes the ingredients in one fancy way (powers and then adding) and another recipe mixes them in a more straightforward way (regular adding and then multiplying) – but both recipes cook up exactly the same cake at the end, which is 135.
This is funny or delightful to people who like math and coding because it feels like a neat little magic trick with a number. You wouldn’t normally expect doing all that different stuff with 1, 3, and 5 would bring you back to 135, but it does! It’s a surprise, like finding out two very different paths lead to the same treasure. That’s why engineers and programmers chuckle or grin when they see this – it’s a cool coincidence that shows how numbers can be playful. Even if you’re not a math expert, you can appreciate that something special happened with 135. It’s a reminder that math has little surprises hidden inside it, and noticing a surprise like this is fun. Just like a simple card trick can amaze you, this number trick makes us go “wow!” because it’s unexpected and satisfying.
Level 2: Two Ways to 135
Let’s break down what the tweet is saying in plain technical terms. The number 135 can be constructed in two different ways using its own digits, which is highly unusual. First way: raise each digit to a power and add them up. The tweet shows:
135 = 1¹ + 3² + 5³
This means we take the first digit 1 and raise it to the power of 1, take the second digit 3 and square it (3² means (3 \times 3 = 9)), and take the third digit 5 and cube it (5³ means (5 \times 5 \times 5 = 125)). Then we add those results: (1 + 9 + 125). If you do that math, indeed you get (135). We can spell it out step-by-step:
- 1¹ = 1 (since any number to the power of 1 is itself)
- 3² = 9 (3 to the power of 2, or 3 * 3)
- 5³ = 125 (5 to the power of 3, or 5 * 5 * 5)
- Now add them: 1 + 9 + 125 = 135 🎉
So the first line is showing a sum of powered digits equaling the original number. This is a nifty math puzzle result; most numbers don’t equal the sum of such powers of their digits. It’s a special trait that 135 has (in fact, only a few numbers like 89, 135, 175, 518, 598 have this kind of property for their digits – it’s almost like a secret club of numbers). In programming terms, you could imagine writing a simple loop to check each 3-digit number for if (digit1^1 + digit2^2 + digit3^3 == originalNumber) and you’d only find those few matches. It’s a classic exercise that might appear in coding practice problems or interviews to test understanding of loops and mathematical operations. In the tags, this is related to a digit_power_sum, meaning we’re summing digits that have been raised to powers.
Now, the second way: use basic addition and multiplication of the digits. The tweet’s second line says:
135 = (1 + 3 + 5) · (1 · 3 · 5)
On the left of that line is our number 135 again, and on the right we have ((1+3+5)) multiplied by ((1 \cdot 3 \cdot 5)). Let’s decipher that:
- (1 + 3 + 5) is the sum of the digits of 135. Adding those gives (9). This is called the digit sum.
- (1 \cdot 3 \cdot 5) is the product of the digits of 135. Multiplying them yields (15). (1 times 3 is 3, and 3 times 5 is 15). This is the digit product.
- Now take those two results: 9 (the sum) and 15 (the product), and multiply them: (9 \times 15 = 135). Sure enough, we get our original number again!
It’s pretty wild for this to happen. Usually, if you add a number’s digits and multiply a number’s digits, and then multiply those two results, you don’t get back the original number. For example, if you try the same trick on 123: sum = 1+2+3 = 6, product = 123 = 6, and then 6*6 = 36 – which is nowhere near 123. So 135 is special. It basically says “if you take my digits, add them up and multiply them together, those two values will combine (via multiplication) to give me back.” This second equation is highlighting a link between two different operations on the digits, a rare digit product identity. The term “identity” here just means an equation that is true (the two sides are identical in value).
In simpler dev terms, think of two functions: sum_of_digits(n) and product_of_digits(n). For n = 135, we discovered that n = sum_of_digits(n) * product_of_digits(n). That’s not something you’d expect normally, so it jumps out as a fun fact. It also implies 135 is divisible by the sum of its digits (since 135 = 9 * 15, it’s clearly divisible by 9). Numbers divisible by their digit sum are called Harshad numbers in number theory – 135 is one of them, and interestingly the quotient (15) turned out to be the digit product here. All these terms (digit sum, digit product, Harshad number, etc.) fall under basic number theory or what a CS student might encounter when learning CS fundamentals or discrete math. They’re the kind of concepts that come up in algorithm challenges, like checking a number’s properties or performing digit manipulations.
So why is this meme showing up in a tech context? Because developers enjoy these neat mathematical coincidences. It’s a quick mental exercise and a diversion from everyday coding. The tweet functions like a tiny brain-teaser: you read “135 = 1¹+3²+5³” and do a double-take, then verify it in your head or scratch paper, and think “Huh, that actually works out!”. Then you see the next line “135 = (1+3+5)(13*5)” and that’s another “Wow!” moment. It’s the kind of thing you might excitedly share in your team’s Slack channel: “Guys, check out this crazy property of 135!”. It scratches the itch that many of us had when we first learned programming or math – the joy of discovering a cool pattern or trick. In tags, this might be labeled under math_trivia or twitter_math_meme, as it’s a bite-sized factoid perfect for social media sharing among geeks.
For a junior developer or a student, encountering this meme can also be educational. It reinforces understanding of exponents (like what does 5³ mean), and the concept of breaking down a number into digits. It’s not every day you see an equation like this, so it naturally piques curiosity. One might even be inspired to write a quick program to search for more numbers like 135 – which is a great exercise in loops, conditionals, and thinking logically. In fact, a simple Python snippet to find 3-digit numbers with the first property might look like:
special_numbers = []
for num in range(100, 1000): # check all 3-digit numbers
a = num // 100 # hundreds digit
b = (num // 10) % 10 # tens digit
c = num % 10 # ones digit
if a**1 + b**2 + c**3 == num:
special_numbers.append(num)
print(special_numbers) # This would output [135, 175, 518, 598]
And indeed 135 is in that list. The code uses basic operations: splitting a number into a, b, c (using division and modulus), then doing the power and sum checks. This is exactly the kind of programming drill that solidifies one’s understanding of both loops and mathematical operations. It’s easy to imagine a newbie coder testing 135 this way just because the tweet sparked their interest.
In summary, the tweet’s content is a neat little showcase of discrete mathematics in action. It’s teaching or reminding us about exponents and digit operations in a fun way. No one is expecting you to use the fact “135 = 1¹+3²+5³” in real life directly (unless you’re in a pub quiz or a math contest), but appreciating it is part of the culture of being a developer or engineer. We celebrate these small marvels of numbers the same way we celebrate elegant code: for the joy of the cleverness behind it.
Level 3: Double Duty Digits
To seasoned developers and engineers, this tweet is the kind of delightful nugget that spices up a timeline full of code and configuration woes. It showcases a quirky property of the number 135 that serves as a lightweight brain-teaser. The humor here is subtle and intellectual: it’s not a punchline or a fail story, but rather a “wow, check this out!” moment that many of us in tech appreciate as a break from debugging and deployment. After wrangling all day with a stubborn bug or a CI pipeline, seeing digits performing double duty – first in an exponent sum (1¹ + 3² + 5³) and then in a combined sum/product ((1+3+5)*(1*3*5)) – brings a nerdy grin. It’s the same kind of satisfaction you get from a perfectly symmetrical code snippet or an algorithm that ends up beautifully simple. There’s a pattern recognition high we experience: an almost childlike joy in spotting that two completely different calculations miraculously give the identical result. In a world where our code usually breaks in 10 different ways, seeing something align so perfectly feels like a tiny victory for order and logic.
The tweet originates from “World of Engineering,” a popular account that often shares fun tech trivia and math trivia. In this dark-mode screenshot, the white text on navy background has a serious look, but the content is pure playful math. That contrast itself is a bit humorous – it’s presented like breaking news for engineers: Breaking: 135 is equal to 1¹+3²+5³ and also equals (1+3+5)(135)!* 🚀. The engagement numbers (dozens of retweets and hundreds of likes) show how this resonated with the community. Why so? Because developers love patterns. Whether it’s spotting a clever algorithmic optimization or a tidy mathematical coincidence, it scratches the same itch. It’s DeveloperHumor at its most wholesome – no sarcasm, just appreciation for how cool numbers can be.
Many senior devs have encountered similar recreational math puzzles before. Perhaps it evokes memories of classic programming challenges like finding narcissistic numbers (also known as Armstrong numbers) during coding interviews or on Project Euler. In those, you check numbers like 153 because (1^3+5^3+3^3 = 153). Here, 135’s twist is using 1, 2, 3 as exponents instead of all 3’s. A seasoned engineer might recall writing a quick script to hunt for such special numbers out of curiosity. (In fact, some might be already thinking: “Are there more numbers like this? Could I generalize a brute-force search for any base-10 number where digitᵢ^i sums up correctly?”).
Let’s be honest: part of the humor is showing off a neat find. It’s as if 135 itself is an overachiever among numbers – “Look at me, I satisfy two cool formulas at once!”. In a team chat or on Twitter, sharing this is a way to bond over a shared love of clever facts. A grizzled veteran dev might jokingly respond, “Cool, now if only our error codes were that cooperative,” hinting at how rare harmony is in daily software development. Another might riff on it with code, saying “Finally, something in life that equals its unit tests exactly,” comparing the two formulas to two independent tests that both pass with flying colors. It’s a gentle, nerdy humor – HumorInTech that doesn’t rely on absurdity, but on genuine amazement.
To sum up the senior perspective: this meme is funny in a geeky, gratifying way. It showcases an elegant solution hiding in plain sight, much like an efficient algorithm hidden in a sea of brute force. It resonates especially with developers because we spend our days searching for patterns and simplifications. Seeing 135 elegantly fold two different operations (adding powers, and multiplying a sum by a product) into the same result scratches that logical itch. It’s a reminder that every now and then, the universe throws a well-formatted, perfectly optimized one-liner at us – and it would be a shame not to share it and savor the moment.
Level 4: Additive–Multiplicative Duality
At the heart of this meme is a mathematical gem that excites any lover of discrete math. The number 135 isn’t just any number – it exhibits a rare digit power sum and a simultaneous digit product identity. Formally, if we let the digits of 135 be (a=1), (b=3), and (c=5), the tweet highlights two striking equalities:
Digit Power Sum: (a^1 + b^2 + c^3 = 1^1 + 3^2 + 5^3 = 135). Here each digit is raised to an increasing power corresponding to its position (1st digit to power 1, 2nd digit to power 2, 3rd digit to power 3). In number theory, 135 is a solution to the equation
$$100a + 10b + c = a^1 + b^2 + c^3,$$
which isn’t a generic property but an invariant for this specific combination of digits. Such numbers, where a sum of powered digits reproduces the original number, are a kind of positional narcissistic number. They’re fixed points of a function that takes a number’s digits and performs these power operations. Beyond 135, other 3-digit examples include 175, 518, and 598, each satisfying (d_1^1 + d_2^2 + d_3^3 = d_1d_2d_3) (with appropriate place values). These are rare solutions in base-10 – out of all possible combinations, only a handful of numbers have this self-referential power-sum property. It’s a delightful result in discrete mathematics because it shows how the structure of base-10 (and positional notation) can yield non-obvious solutions to a custom exponent equation.Digit Sum–Product Identity: The tweet’s second line reveals (135 = (1+3+5)\cdot(1\cdot3\cdot5)). In mathematical terms:
$$100a + 10b + c = (a+b+c)\times(a \times b \times c).$$
This is an arithmetical curiosity that blends additive and multiplicative functions of a number’s digits. The sum of digits here is (1+3+5=9), and the product of digits is (1\cdot3\cdot5=15). The fact that (9 \times 15 = 135) exactly equals the original number is extraordinary. Typically, digit sums and digit products are unrelated beyond certain trivial cases (for example, any number with a 0 digit has a 0 product, which is a clear outlier). But 135 shows a perfect marriage of these operations. This implies (135) is not just a Harshad number (divisible by the sum of its digits), but in fact (135 / (1+3+5) = 15) equals the product of its digits. Solving
$$(a+b+c) \times (a b c) = 100a + 10b + c$$
for integer digits (a,b,c) is a nonlinear Diophantine puzzle, and 135 (as well as 144, interestingly) emerges as a solution. These solutions are extremely scarce, because as numbers grow, the multiplicative factor (a \times b \times c) tends to balloon compared to the linear combination (100a+10b+c), except in fine-tuned cases like this. The dual identity of 135 essentially makes it a mathematical Easter egg – a hidden surprise in the vast space of numbers where two very different formulas converge on the same result.
From a theoretical perspective, patterns like these tickle the brain because they hint at hidden symmetry. They are reminiscent of digital invariants and other base-dependent phenomena: change the base or alter a digit and the property vanishes. While there’s no far-reaching theorem that mandates 135 to have these properties (it’s mostly a lucky coincidence under base-10 arithmetic), discovering such coincidences is a beloved pastime in recreational number theory. It’s akin to finding a loophole in the mathematical universe where addition, multiplication, and exponentiation all conspire to point to one number. For computer scientists and mathematicians, 135 exemplifies how elegant patterns can emerge from simple rules – a concrete example of the playful side of CS fundamentals and math where a pure logic puzzle appears, unbidden, in the wild. This deep dive into 135’s dual identity elevates a quick tweet into an appreciation of number theory beauty: even within the rigid logic of arithmetic, there are pockets of delight that feel almost magical.
Description
A screenshot of a tweet from the 'World of Engineering' Twitter account. The tweet presents two interesting mathematical properties of the number 135. The first equation shows that 135 is the sum of its digits raised to consecutive powers: 135 = 1^1 + 3^2 + 5^3. The second equation demonstrates that 135 is also the product of the sum of its digits and the product of its digits: 135 = (1+3+5) * (1*3*5). The content is a piece of mathematical trivia, appealing to the pattern-recognition and problem-solving mindset common among engineers and developers. It's not a meme or a joke, but rather a fascinating numerical coincidence that provides a moment of intellectual curiosity and satisfaction
Comments
29Comment deleted
This is the kind of elegant, unexpected solution you'd see in a code review and wonder if the developer is a genius or just got incredibly lucky
135 can prove its own liveness twice - 1¹+3²+5³ = (1+3+5)(1·3·5) = 135 - yet our microservice still needs four health endpoints and a dedicated SRE just to say “I’m up.”
This is the kind of mathematical property that makes you spend three hours writing a "clever" optimization, only to have the profiler show it's 0.003% faster than the naive approach
This is the kind of mathematical elegance that makes you want to refactor your entire codebase at 2 AM - because if 135 can express itself in two beautifully symmetric ways, surely your nested if-statements can too. Though unlike this number theory gem, your refactoring will probably break production and won't have 294 likes to show for it
135 = 1^1 + 3^2 + 5^3 = (1+3+5)*(1*3*5) - the algebraic version of a sprint demo: impressive, reproducible exactly once, and a perfect argument for property-based tests
MVP narcissistic 153=1³+3³+5³: axed 3³=27 for that lean engineering budget
If only roadmaps behaved like 135 - digits act as both generators and reducers, invariants hold, and the magic number finally deserves to ship to prod
135 = 1*10^2 + 3*10^1 + 5*10^0 Wait... this is how numeral system works Comment deleted
haha, no way Comment deleted
You meant decimal Comment deleted
in this case yes Comment deleted
Yeah, except it's not the case Comment deleted
10 GOTO SCHOOL 20 LEARN SOME MATH Comment deleted
4real? 1+9+125 No offense, bruh, could happen to anyone Comment deleted
my exp differs from first exp on that pic so obviously we're talking about different things, bruh Comment deleted
We live in the simulation Comment deleted
wait that's real Comment deleted
No, (1+3+5)*1*3*5 = 87 Comment deleted
You need a friend Comment deleted
you need to under-stand. Comment deleted
I need to above-lay Comment deleted
Luc's SIM hilare two, butt differ ant. PS. I'm better in french, I can make long confusing paragraphs, writing like this. Comment deleted
This is really scarry! What will be the next? Comment deleted
a^b = e^(b*ln(a)) Comment deleted
Pathetic Comment deleted
They'll let us divide by zero? Comment deleted
They'll force us to divide by zero! Comment deleted
1+1+1 = 11 2+2 = 2^2 = 2*2 = 4 Comment deleted
Clone. Comment deleted