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.

A376110 Number of permutations of {1,2,...,n} that are non-self-overlapping as Hertzsprung patterns; also called non-extendible.

Original entry on oeis.org

1, 1, 0, 4, 18, 106, 658, 4778, 38770, 352458, 3546170, 39179282, 471653322, 6146403266, 86212578962, 1295136607114, 20747437026442, 353059209467042, 6360348815730370, 120931046165866362, 2420054522391186274, 50846927248165344442, 1119121906010637564906, 25749587951077654272898
Offset: 0

Views

Author

Sergi Elizalde, Sep 10 2024

Keywords

Comments

Equivalently, a(n) is the number of permutations of {1,2,...,n} that have no proper Hertzsprung bifix (i.e., a prefix and a suffix of length i

Examples

			For n=4, the a(4) = 18 non-self-overlapping permutations of {1,2,3,4} are all but 1234, 4321, 1324, 4231, 2143, 3412.
		

Programs

  • Maple
    NonOverPerms:= proc(n) option remember;
      n!-add((i! + NonOverPerms(i))*(n-2*i)!, i=1..floor(n/2))
    end:
    seq(NonOverPerms(n), n=0..25);

Formula

a(n) = n! - Sum_{i=1..floor(n/2)} (i! + a(i))*(n-2*i)!.