OFFSET
0,13
EXAMPLE
a(123130415)=3335 since it should be read as 01.23.13.04.15, i.e., zero 1's followed by two 3's followed by one 3 followed by zero 4's followed by one 5.
PROG
(Python)
def A056967(n):
s = str(n)
s = '0'*(len(s)&1)+s
return int('0'+''.join(s[i+1]*int(s[i])for i in range(0, len(s), 2))) # Chai Wah Wu, Feb 12 2023
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Henry Bottomley, Jul 20 2000
STATUS
approved