Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A007907
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A007907 Concatenation of sequence (1,2,..,[(n-1)/2],[n/2],[n/2]-1,..,1) for n >= 1. +0
5
1, 11, 121, 1221, 12321, 123321, 1234321, 12344321, 123454321, 1234554321, 12345654321, 123456654321, 1234567654321, 12345677654321, 123456787654321, 1234567887654321, 12345678987654321 (list; graph; listen)
OFFSET

1,2

COMMENT

Also called Smarandache symmetric numbers.

REFERENCES

M. Le, The Primes in the Smarandache Symmetric Sequences, Smarandache Notions Journal, Vol. 10, No. 1-2-3, 1999, 174-175.

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

LINKS

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

Eric Weisstein's World of Mathematics, Link to a section of The World of Mathematics.

F. Smarandache, Only Problems, Not Solutions!

FORMULA

a(n)=a1+a2+a3, where a1=floor{a(n-1)/[10^(k+y*w)]}*10^(k+w+y*k2) a2=(w2*y2+b*y)*10^(k+y*w) a3=a(n-1)-floor{a(n-1)/[10^(k+y*w)]}*10^(k+y*w) being k=floor{(floor[1+log10(a(n-1)))-x*w]/2} k2=floor[1+log10(b)] x=[3+(-1)^(n+1)]/2 y=[1+(-1)^(n+1)]/2 y2=[1+(-1)^n]/2 b=[2*n+1+(-1)^(n+1)]/4 w=floor{1+log10[(2*(n-1)+1+(-1)^n)/4]} w2=[2*(n-1)+1+(-1)^n]/4 - Paolo P. Lava (ppl(AT)spl.at), Jun 04 2008

MAPLE

P:=proc(n) local a, a1, a2, a3, b, k, k2, i, w, w2, x, y, y2; a:=1; print(a); for i from 2 by 1 to n do x:=(3+(-1)^(i+1))/2; y:=(1+(-1)^(i+1))/2; y2:=(1+(-1)^i)/2; b:=(2*i+1+(-1)^(i+1))/4; w:=floor(evalf(1+log10((2*(i-1)+1+(-1)^i)/4), 1000)); w2:=(2*(i-1)+1+(-1)^i)/4; k:=floor((floor(evalf(1+log10(a), 1000))-(x)*w)/2); k2:=floor(evalf(1+log10(b), 1000)); a1:=floor(evalf(a/(10^(k+y*w)), 1000))*10^(k+w+y*k2); a2:=(w2*y2+b*y)*10^(k+y*w); a3:=a-floor(evalf(a/10^(k+y*w), 1000))*10^(k+y*w); a:=a1+a2+a3; print(a); od; end: P(500); - Paolo P. Lava (ppl(AT)spl.at), Jun 04 2008

CROSSREFS

Sequence in context: A106473 A125315 A132583 this_sequence A088113 A045587 A059734

Adjacent sequences: A007904 A007905 A007906 this_sequence A007908 A007909 A007910

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 13 23:45 EST 2009. Contains 170824 sequences.


AT&T Labs Research