Handmade almost integer sequence. Part 01.
Handmade almost integer sequence. Part 01. Where were we? Ah, OK. What about 1+2. Following the pattern, let's consider 1−2. The sum of these two numbers is 2 and product is -1. So, they are
EN / RU
A shared space for people who love physics, mathematics, and programming.
This project mirrors phys_math_dev and turns daily channel knowledge into a durable, searchable archive.
The goal is simple: share useful ideas, keep them accessible, and help curious people connect across disciplines.
If you enjoy learning how theory meets engineering practice, this hub is for you.
Handmade almost integer sequence. Part 01. Where were we? Ah, OK. What about 1+2. Following the pattern, let's consider 1−2. The sum of these two numbers is 2 and product is -1. So, they are
Or is it too late? I came across a line in a chat. It went something like “An LLM proved the Riemann hypothesis, and humans didn’t.” My first thought was, one LLM? I’d bet on a swarm of agents working together. My next t
Photo shared on November 22, 2026
Handmade almost integer sequence. Part 00. Let's get back on track. My train of thought was: row of Pascal's triangle in linear time; O(n) for Fibonacci ; quick power ; matrix for Fibonacci ; [derivation
Predatory fungi of Uzbekistan I'm going to continue serious math. But not today. Let's take a short break. Yesterday I fell in a poetic pit. Everything started with a short funny rhyme, published in a channel I read. I'm
Photo shared on October 31, 2026
Cube root in Python Quite a funny thing. It turned out that the Python works in the complex plane by default. Therefore when you are trying to take a cube root of a negative number ** operator thinks in complex plane in
Almost integers Let's look at the expression we derived in the previous post: fn=5(21+5)n−(21−5)n. Let's look at the values inside the
Derivation of a formula for the nth Fibonacci number While we are talking about different ways of calculating terms of the famous sequence, let's derive the closed-form expression for the nth number. In school I had some
Matrix multiplication for Fibonacci When you have four sections in an RC phase-shift circuit, it is quite a mundane task to write down Kirchhoff's equations and to solve them. Calculation of the complex voltage transfer
Toward fast Fibonacci. Power python def fast_pow(x, n): accum = 1 p2 = x while n: if n % 2: accum *= p2 p2 = p2 * p2 n //= 2 return accum It's fast exponentiation in Python. If you want, check it in Rust. It w
Almost efficient calculation of the Fibonacci sequence Programming interviews are insane. At Meta my friend was asked to print out the n-th number in the Fibonacci sequence. We already know how not to do it. But how do w