login
A220696
The positions of those permutations in A030298 where the first element is one (fixed).
4
1, 2, 4, 5, 10, 11, 12, 13, 14, 15, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179
OFFSET
1,2
COMMENTS
Correspondingly gives the positions of those terms in A030299 whose first digit is 1, as long as the decimal encoding system employed is valid.
LINKS
FORMULA
a(1)=1; and for n>1, a(n)=A220695(n-1)+1.
PROG
(Scheme) ;; With Antti Karttunen's intseq-library:
(define A220696 (COMPLEMENT 1 A220656))
;; Alternative definition:
(define (A220696v2 n) (if (< n 2) n (+ 1 (A220695 (- n 1)))))
CROSSREFS
Complement: A220656. Cf. A072795.
Sequence in context: A173817 A198383 A334268 * A275482 A156799 A003278
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 17 2012
STATUS
approved