OFFSET
1,4
COMMENTS
LINKS
FORMULA
For n > 1, a(A100287(n)) = 1.
PROG
(Scheme)
;; Very crude. Find it with two nested loops. (Maybe a closed form exists?)
(define (A278529 n) (cond ((not (zero? (A278169 n))) 0) ((even? n) (/ n 2)) (else (let searchrow ((row 2)) (let searchcol ((col 1)) (cond ((>= (A278507bi row col) n) (if (= (A278507bi row col) n) col (searchrow (+ 1 row)))) (else (searchcol (+ 1 col)))))))))
;; Code for A278507bi given in A278507.
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 23 2016
STATUS
approved