If we have a finite list of elements we can determine the probability of any one element being drawn at random as the number of times it occurs divided by the total number of elements in the list.
For example if the list is [2,3,2,4]
the probability of drawing 2
is \$\frac 1 2\$ since there are \$2\$ 2
s and \$4\$ elements total.
For an infinite sequence we can't use this method. Instead what we can do is look at every prefix of the sequence determine the probability using the above method and then see if the limit of the probabilities converges. This looks like
$$ P(x, s_i) = \displaystyle\lim_{n\rightarrow\infty} \dfrac{\left|\left\{s_m\mid m<n,s_m=x\right\}\right|}{n} $$
For example if we have the sequence which alternates between 0
and 1
, [0,1,0,1,0,1...
, then the probability of drawing a 0
is \$\frac 1 2\$.
Now this is neat but sometimes the limit just doesn't converge, and so the probability of an element being drawn is undefined.
Your task will be to implement a sequence where for every positive integer its probability is undefined. This means that no matter what you pick this limit must not converge. It also means just as a side effect that every positive integer must appear an infinite number of times. Otherwise the probability would converge to \$0\$.
You may implement any sequence you wish as long as it fulfills the above. Your sequence should output non-negative integers. Zero is permitted to appear in the sequence but is not required to.
This challenge uses the defaults for sequence IO which can be found here.
This is code-golf so the goal is to minimize your source code with answers being scored in bytes.