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. 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.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.
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
8organicbits•4h ago
nurettin•3h ago
volemo•1h ago
Could you elaborate on your reasons for calling Eric Weisstein insane?
foodevl•1h ago
quietbritishjim•1h ago