OFFSET
1,2
COMMENTS
A183079 seen as flattened sequence is a permutation of the natural numbers, therefore for each n there exists exactly 1 row in A183079 containing n.
In this sequence each n >= 2 occurs a total of 2^(n-2) times. - Antti Karttunen, May 18 2015
LINKS
Reinhard Zumkeller (first 250 terms) & Antti Karttunen, Table of n, a(n) for n = 1..10440
FORMULA
MATHEMATICA
(* b is A220347 *) b[n_] := b[n] = With[{r = (-1 + Sqrt[8n + 1])/2}, Which[n <= 1, n, IntegerQ[r], 2b[Floor[Sqrt[2n] + 1/2]] - 1, True, 2b[n - Floor[r]]]];
a[n_] := 1 + IntegerLength[b[n] - 1, 2];
Array[a, 100] (* Jean-François Alcover, Dec 05 2021 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Dec 12 2012
EXTENSIONS
Name edited by Michel Marcus, Jan 26 2022
STATUS
approved