OFFSET
1,7
COMMENTS
LINKS
Tyler Satchel Orden, C++ program computing a(1)-a(19) (also A258204 and A258206)
FORMULA
PROG
(Scheme)
(define (A258205 n) (let loop ((k (+ 1 (expt 2 (+ n n)))) (c 0)) (cond ((pow2? k) c) (else (loop (+ 1 k) (+ c (if (isA258005? k) 1 0)))))))
(define (pow2? n) (let loop ((n n) (i 0)) (cond ((zero? n) #f) ((odd? n) (and (= 1 n) i)) (else (loop (/ n 2) (1+ i)))))) ;; Gives non-false only when n is a power of two.
;; Code for isA258005? given in A258005.
(C++) // a(14)-a(19) were computed by an exhaustive depth-first enumeration of the 2n-step closed self-avoiding walks on the honeycomb lattice, with polygons collected into equivalence classes under the 12-element point group and each class tested for reflection symmetry. See the a-file link for the program. - Tyler Satchel Orden, Jul 13 2026
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Antti Karttunen, May 31 2015
EXTENSIONS
a(14)-a(19) from Tyler Satchel Orden, Jul 13 2026
STATUS
approved