Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A007943
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A007943 Concatenation of sequence (1,3,..,2n-1,2n,2n-2,..,2). +0
1
12, 1342, 135642, 13578642, 13579108642, 135791112108642, 1357911131412108642, 13579111315161412108642, 135791113151718161412108642, 1357911131517192018161412108642 (list; graph; listen)
OFFSET

1,1

COMMENT

Also called Smarandache permutation sequence.

REFERENCES

M. Le, Perfect Powers in the Smarandache Permutation Sequence, Smarandache Notions Journal, Vol. 10, No. 1-2-3, 1999, 148-149.

F. Smarandache, "Only Problems, not Solutions!", Xiquan Publ., Phoenix-Chicago, 1993.

LINKS

M. L. Perez et al., eds., Smarandache Notions Journal

F. Smarandache, Only Problems, Not Solutions!

FORMULA

a(n)=a1+a2+a3 where a1=floor[a(n-1)/(10^d)]*10^floor[1+log10(a2)], a2={(2*n-1)*10^floor[1+log10(2*n)]+2*n}*10^floor[1+log10(a3)], a3=a(n-1)-floor[a(n-1)/(10^d)]*10^floor(d), d={floor[1+log10(a(n-1))]+[1+(-1)^floor(1+log10(2*(n-1)))]/2}/2+w, w={floor[1+log10(2*n-1)]-1-(1-(-1)^(floor[1+log10(2*n-1)]-1))/2}/2. - Paolo P. Lava (ppl(AT)spl.at), Jun 17 2008

MAPLE

P:=proc(n) local a, a1, a2, a3, d, i, w; a:=12; print(a); for i from 2 by 1 to n do w:=(floor(evalf(1+log10(2*i-1), 1000))-1-(1-(-1)^(floor(evalf(1+log10(2*i-1), 1000))-1))/2)/2; d:=(floor(evalf(1+log10(a), 1000))+(1+(-1)^floor(evalf(1+log10(2*(i-1)), 1000)))/2)/2+w; a3:=a-floor(evalf(a/(10^d), 1000))*10^floor(evalf(d, 1000)); a2:=((2*i-1)*10^floor(evalf(1+log10(2*i), 1000))+2*i)*10^floor(evalf(1+log10(a3), 1000)); a1:=floor(evalf(a/(10^d), 1000))*10^floor(evalf(1+log10(a2), 1000)); a:=a1+a2+a3; print(a); od; end: P(1000); - Paolo P. Lava (ppl(AT)spl.at), Jun 17 2008

CROSSREFS

Sequence in context: A133461 A071309 A067108 this_sequence A015512 A004145 A145835

Adjacent sequences: A007940 A007941 A007942 this_sequence A007944 A007945 A007946

KEYWORD

nonn,base

AUTHOR

R. Muller

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 December 4 12:27 EST 2008. Contains 151280 sequences.


AT&T Labs Research