Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A119674
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A119674 Number of states of the minimal deterministic finite automaton that accepts binary strings that represent numbers that are divisible by n. +0
1
1, 2, 3, 3, 5, 4, 7, 4, 9, 6, 11, 5, 13, 8, 15, 5, 17, 10, 19, 7, 21, 12, 23, 6, 25, 14, 27, 9, 29, 16, 31, 6, 33, 18, 35, 11, 37, 20, 39, 8, 41, 22, 43, 13, 45, 24, 47, 7, 49, 26, 51, 15, 53, 28, 55, 10, 57, 30, 59, 17, 61, 32, 63, 7, 65, 34, 67, 19, 69, 36, 71, 12, 73, 38, 75, 21, 77 (list; graph; listen)
OFFSET

1,2

COMMENT

a(p) = p for prime numbers p

FORMULA

a(1)=1; then a(2n)=a(n)+1, a(2n+1)=2n+1 - Benoit Cloitre (benoit7848c(AT)orange.fr), Jun 04 2007

EXAMPLE

a(12) = 5

PROGRAM

(PARI) a(n)=if(n<2, 1, if(n%2, n, a(n/2)+1)) - Benoit Cloitre (benoit7848c(AT)orange.fr), Jun 04 2007

CROSSREFS

Sequence in context: A143089 A161857 A135533 this_sequence A064920 A064916 A062854

Adjacent sequences: A119671 A119672 A119673 this_sequence A119675 A119676 A119677

KEYWORD

nonn

AUTHOR

Mirko Rahn (rahn(AT)ira.uka.de), Jun 12 2006

page 1

Search completed in 0.002 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 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research