frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Sequence and first differences together list all positive numbers exactly once

https://oeis.org/A005228
43•andersource•4d ago

Comments

8organicbits•4h ago
OEIS is such a wonderful reference. I've had occasions where software I was building needed to compute certain sequences, but I hadn't yet figured out the underlying math. I popped the sequence into OEIS and found the closed form solution. It was a huge productivity boost.
nurettin•3h ago
For me it was a favorite place to visit every so often. I also really enjoyed mathworld.wolfram.com a few decades ago. (A true shame that he went insane)
volemo•1h ago
> A true shame that he went insane

Could you elaborate on your reasons for calling Eric Weisstein insane?

foodevl•1h ago
I don't know (and don't need you to elaborate on) exactly what you're referring to in that last sentence, but I suspect you are confusing Eric W. Weisstein with Eric Weisstein.
quietbritishjim•1h ago
More likely he's confusing the mathworld author with Stephen Wolfram
HocusLocus•4h ago
Like 'even and odd' on steroids.
kleiba•3h ago
Coding exercise: write a function

    boolean isInSequence(n):
that decides whether the given integer is part of that sequence or not. However, pre-storing the sequence and only performing a lookup is not allowed.
rokob•1h ago
return n >= 0
r0uv3n•1h ago
2 for example is not in the sequence. Remember that you need the first differences to this sequence to obtain all natural numbers
rokob•38m ago
Hah oh right duh
vbezhenar•1h ago
Compute the sequence until you get n or m > n?
haskellshill•54m ago
How about the following Haskell program?

    rec ((x:xs),p) = (filter (/= p+x) xs,p+x)
    sequ = map snd $ iterate rec ([2..],1)
sequ is an infinite list of terms of the sequence A005228.
cluckindan•2h ago
Recursive (n choose 2) is my favorite.

https://oeis.org/A086714

If you think about it, it quantifies emergence of harmonic interference in the superposition of 4 distinct waveforms. If those waveforms happen to have irrational wavelengths (wrt. each other), their combination will never be in the same state twice.

This obviously has implications for pseudorandomness, etc.

OscarCunningham•1h ago
Is there a sequence where the sequence and all its differences contain each positive integer once?

Something like

    1 3 9   26  66
     2 6  17  40
      4 11  23
       7  12
        5
Oh, here it is: https://oeis.org/A035313

I made my VM think it has a CPU fan

https://wbenny.github.io/2025/06/29/i-made-my-vm-think-it-has-a-cpu-fan.html
56•todsacerdoti•50m ago•8 comments

Show HN: Octelium – FOSS Alternative to Teleport, Cloudflare, Tailscale, Ngrok

https://github.com/octelium/octelium
83•geoctl•3h ago•32 comments

Using the Internet without IPv4 connectivity

https://jamesmcm.github.io/blog/no-ipv4/
171•jmillikin•6h ago•62 comments

Bloom Filters by Example

https://llimllib.github.io/bloomfilter-tutorial/
40•ibobev•2h ago•5 comments

The Unsustainability of Moore's Law

https://bzolang.blog/p/the-unsustainability-of-moores-law
85•shadyboi•7h ago•51 comments

Performance Debugging with LLVM-mca: Simulating the CPU

https://johnnysswlab.com/performance-debugging-with-llvm-mca-simulating-the-cpu/
6•signa11•1h ago•1 comments

More on Apple's Trust-Eroding 'F1 the Movie' Wallet Ad

https://daringfireball.net/2025/06/more_on_apples_trust-eroding_f1_the_movie_wallet_ad
409•dotcoma•6h ago•242 comments

MCP: An (Accidentally) Universal Plugin System

https://worksonmymachine.substack.com/p/mcp-an-accidentally-universal-plugin
664•Stwerner•1d ago•299 comments

Sequence and first differences together list all positive numbers exactly once

https://oeis.org/A005228
43•andersource•4d ago•15 comments

Solving `Passport Application` with Haskell

https://jameshaydon.github.io/passport/
227•jameshh•15h ago•87 comments

What UI first distinguished radio buttons from checkboxes with circles/squares?

https://retrocomputing.stackexchange.com/questions/31806/what-ui-first-distinguished-radio-buttons-from-checkboxes-with-circles-and-squar
41•azeemba•3d ago•30 comments

Show HN: SmartStepper – Multi-Step Form Library with Config-Based Flow

https://github.com/Miladxsar23/smartstepper
5•milad_shirian•50m ago•1 comments

YouTube: Robotic translation annoys users and cannot be turned off

https://www.heise.de/en/news/YouTube-auto-dubbing-Robotic-translation-annoys-users-and-cannot-be-turned-off-10315551.html
5•doener•15m ago•3 comments

Show HN: A different kind of AI Video generation

24•fcpguru•3d ago•7 comments

The Death of the Middle-Class Musician

https://thewalrus.ca/the-death-of-the-middle-class-musician/
188•pseudolus•16h ago•398 comments

Implementing fast TCP fingerprinting with eBPF

https://halb.it/posts/ebpf-fingerprinting-1/
13•halb•3h ago•3 comments

Engineered Addictions

https://masonyarbrough.substack.com/p/engineered-addictions
589•echollama•23h ago•359 comments

Improving River Simulation

https://undiscoveredworlds.blogspot.com/2025/04/improving-river-simulation.html
39•Hooke•3d ago•0 comments

We ran a Unix-like OS on our home-built CPU with a home-built C compiler (2020)

https://fuel.edby.coffee/posts/how-we-ported-xv6-os-to-a-home-built-cpu-with-a-home-built-c-compiler/
278•AlexeyBrin•1d ago•27 comments

Schizophrenia is the price we pay for minds poised near the edge of a cliff

https://www.psychiatrymargins.com/p/schizophrenia-is-the-price-we-pay
128•Anon84•17h ago•183 comments

BusyBeaver(6) Is Quite Large

https://scottaaronson.blog/?p=8972
240•bdr•21h ago•170 comments

JavaScript Trademark Update

https://deno.com/blog/deno-v-oracle4
805•thebeardisred•19h ago•281 comments

Magnetic Tape Storage Technology: usage, history, and future outlook

https://dl.acm.org/doi/10.1145/3708997
23•matt_d•7h ago•3 comments

What LLMs Know About Their Users

https://www.schneier.com/
10•voxleone•3d ago•2 comments

Life of an inference request (vLLM V1): How LLMs are served efficiently at scale

https://www.ubicloud.com/blog/life-of-an-inference-request-vllm-v1
154•samaysharma•20h ago•17 comments

2025 ARRL Field Day

https://www.arrl.org/field-day
114•rookderby•19h ago•34 comments

Community Is Motivation on Tap

https://alanwu.xyz/posts/community/
89•lunw•4d ago•33 comments

An Indoor Beehive in My Bedroom Wall

https://www.keepingbackyardbees.com/an-indoor-beehive-zbwz1810zsau/
137•gscott•21h ago•64 comments

Abusing copyright strings to trick SW into thinking it's running competitor's PC

https://devblogs.microsoft.com/oldnewthing/20250624-00/?p=111299
55•mastazi•3d ago•11 comments

Is being bilingual good for your brain?

https://www.economist.com/science-and-technology/2025/06/27/is-being-bilingual-good-for-your-brain
114•Anon84•21h ago•133 comments