Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A131841
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A131841 Additive persistence of Woodall numbers. +0
2
0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 3, 2, 2, 3, 3, 2, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 2, 3, 3, 2, 3, 3, 3, 3, 2, 3, 2, 2, 3, 3, 3, 3, 3, 4, 2, 3, 3, 3, 3, 3, 3, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 4, 3, 4, 2, 2, 3, 2, 2, 3, 4, 3, 2, 2, 3, 2, 2, 3, 2, 2, 2, 4, 3, 2, 3, 3, 3, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 2, 3, 3, 2, 3, 3 (list; graph; listen)
OFFSET

1,5

EXAMPLE

Woodall number 159 --> 1+5+9=15 --> 1+5=6 thus persistence is 2

MAPLE

P:=proc(n) local i, k, w, ok, cont; for i from 1 by 1 to n do w:=0; k:=i*2^i-1; ok:=1; if k<10 then print(0); else cont:=1; while ok=1 do while k>0 do w:=w+(k-(trunc(k/10)*10)); k:=trunc(k/10); od; if w<10 then ok:=0; print(cont); else cont:=cont+1; k:=w; w:=1; fi; od; fi; od; end: P(120);

CROSSREFS

Cf. A003261, A131838.

Sequence in context: A096917 A068049 A141256 this_sequence A122921 A108128 A081326

Adjacent sequences: A131838 A131839 A131840 this_sequence A131842 A131843 A131844

KEYWORD

easy,nonn,base

AUTHOR

Paolo P. Lava & Giorgio Balzarotti (ppl(AT)spl.at), Jul 20 2007

page 1

Search completed in 0.003 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research