A172006 Shortest SNUSP representation of a number using only +, - and @.
1, 2, 3, 4, 4, 5, 5, 5, 6, 7, 6, 7, 6, 7, 7, 8, 7, 7, 8, 8, 7, 8, 8, 9, 8, 8, 8, 8, 8, 9, 9, 9, 9, 8, 9, 10, 9, 9, 10, 10, 9, 10, 9, 10, 9, 10, 9, 10, 10, 10, 10, 10, 10, 10, 9, 10, 10, 10, 10, 10, 10, 10, 11, 11, 10, 11, 10, 10, 10, 11, 11, 11, 10, 11, 11, 10, 11, 11, 11, 11, 11, 11, 11, 12
Offset: 1
Keywords
Examples
To produce 10, there are 4 minimal sequences, each of length 7 (as always, excluding the #): +@+++++# ++@@+++# +@++@++# ++@@@++# Thus a(10)=7. The first value that requires a - in its minimal representation is 25 which requires 8 characters. If we disallow the '-' command (as in sequence A172005), it requires 9 characters.
Crossrefs
Cf. A172005.
Programs
-
Maple
See A172005.
Comments