Schröder number(不穿过对角线的路径数 1, 2, 6, 22, 90, 394)

本文介绍了施罗德数的概念及其应用场景,包括从(0,0)到(n,n)的不穿过对角线路径的数量,以及从(0,0)到(2n,0)的路径数量等,并给出了递推公式及数列的前几项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

oeis 整数数列大全

Schröder number, describes the number of lattice paths from the southwest corner
( 0 , 0 )of an n × n grid to the northeast corner ( n , n ) , using only single steps north,( 0 , 1 ) ; northeast, ( 1 , 1 ); or east, ( 1 , 0 ), that do not rise above the SW–NE diagonal.

意思是从( 0 , 0 )到( n , n )有多少条不穿过对角线的路径,是不是听起来和卡特兰数很像?
但是这里的路可以是斜着的

Schröder number有以下几种定义:

  • S(n)表示第n个Schröder number(S(0)=1,S(1)=2) n*n的方案数

这里写图片描述

  • 从( 0 , 0 )到( 2n , 0 )的方案数

这里写图片描述

  • 过对角线上n点切n刀分成n+1个矩形的方案数

这里写图片描述这里写图片描述
递推公式为:
这里写图片描述
前几项为:

1, 2, 6, 22, 90, 394, 1806, 8558, 41586, 206098, 1037718, 5293446, 27297738, 142078746, 745387038, 3937603038, 20927156706, 111818026018, 600318853926, 3236724317174, 17518619320890, 95149655201962, 518431875418926

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值