cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A337353 Number of n-step self-avoiding walks on a square lattice where no step can be in the same direction as the previous step.

Original entry on oeis.org

1, 4, 8, 16, 24, 40, 64, 104, 168, 272, 440, 712, 1128, 1808, 2896, 4640, 7368, 11744, 18752, 29920, 47376, 75304, 119824, 190632, 301488, 478160, 759056, 1204848, 1903576, 3014272, 4776504, 7568688, 11947976, 18895760, 29901592, 47317080, 74643504, 117930520, 186413728, 294666160
Offset: 0

Views

Author

Scott R. Shannon, Aug 24 2020

Keywords

Examples

			a(5) = 40. The five possible 5-step walks in the first quadrant are:
.
+--+   +--+         +--+        +--+
|         |            |        |
+--+      +--+      +--+     +--+       +--+
   |         |      |        |          |  |
x--+      x--+   x--+     x--+       x--+  +--+
.
Each of these can be taken in eight ways on the square lattice, giving 40 in total.
		

Crossrefs

Formula

a(n) = 4*A336662(n).