The sequence an is defined for any n≥10 by the following inductive rule:
a10=5778
If an=0 then an+1=0 .
If an=0 then an+1 is the number whose base- (n+1) representation equals the base n representation of the number an−1 .
[/list]
For example, a11=5⋅113+7⋅112+7⋅111+7⋅110=7586a12=5⋅123+7⋅122+7⋅121+6⋅120=9738 [list=a]